This is a "sieve" filter that is installed on Tuffmail on my account, so that emails I don't want to read at work go into a NotWork folder.

Apparently "sieve" is a filtering language. I don't have a thorough reference for it but this much seems to work anyway.

# This script is to filter stuff I don't want to see while I'm at work - BWD
require ["fileinto","imapflags","relational","comparator-i;ascii-numeric","regex","notify"];
if
anyof (header :contains "From" "dailykos.com",
header :contains "From" "commoncause.org",
header :contains "From" "fwwatch.org",
header :contains "From" "afsc.org",
header :contains "From" "jstreet.org",
header :contains "From" "democracyforamerica.org",
header :contains "From" "pfaw.org",
header :contains "From" "aft.org",
header :contains "From" "sumofus.org",
header :contains "From" "maggiehassan.com",
header :contains "From" "nea.org",
header :contains "From" "moveon.org",
header :contains "From" "prochoiceamerica.org")
{
fileinto "NotWork";
}

-- BenDugan - 01 Feb 2017
Topic revision: r2 - 01 Feb 2017, BenDugan
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback