Skip to content

Instantly share code, notes, and snippets.

@digitalpardoe
Created November 13, 2014 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalpardoe/477a4d23d3e058984e46 to your computer and use it in GitHub Desktop.
Save digitalpardoe/477a4d23d3e058984e46 to your computer and use it in GitHub Desktop.
if true {
notify :method "mailto" :options ["trigger@recipe.ifttt.com"] :message "/ $subject$ /";
}
if not header :contains ["X-Spam-known-sender"] "yes" {
if allof(
header :contains ["X-Backscatter"] "yes",
not header :matches ["X-LinkName"] "*"
) {
setflag "\\Seen";
fileinto "INBOX.Junk Mail";
stop;
}
if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["5"] {
setflag "\\Seen";
fileinto "INBOX.Junk Mail";
stop;
}
}
if header :matches ["x-forwarded-for"] "john@company.com" {
discard;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment