Created
September 22, 2016 10:22
-
-
Save gwire/e5fc7c93941a293d69fa131631d969a3 to your computer and use it in GitHub Desktop.
Mark emails as read if they contain specific emoji in the Subject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ["imap4flags"]; | |
require ["encoded-character"]; | |
## No time to waste on your cute emails | |
if header :contains "Subject" [ | |
"${unicode:1F525}", | |
"${unicode:1F4A9}", | |
"${unicode:1F6BD}" | |
] { | |
addflag "\\Seen"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment