Skip to content

Instantly share code, notes, and snippets.

@gwire
Created September 22, 2016 10:22
Show Gist options
  • Save gwire/e5fc7c93941a293d69fa131631d969a3 to your computer and use it in GitHub Desktop.
Save gwire/e5fc7c93941a293d69fa131631d969a3 to your computer and use it in GitHub Desktop.
Mark emails as read if they contain specific emoji in the Subject
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