X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=subdir_files%2Fsieve%2Ffsf.sieve;h=26d4c273a18e5f94c10115934b70667c5cd8aac2;hb=2d3ce30754a3f24d922635647bab4990b60f5c27;hp=9c631afc9d3a62ec2355749471b6fa45deff1b9c;hpb=eb9b839bb5a91c60cc4f6eb9d7e38ffbf73f0e90;p=distro-setup diff --git a/subdir_files/sieve/fsf.sieve b/subdir_files/sieve/fsf.sieve index 9c631af..26d4c27 100644 --- a/subdir_files/sieve/fsf.sieve +++ b/subdir_files/sieve/fsf.sieve @@ -1,7 +1,13 @@ require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", "include" ]; +if anyof (header :contains "list-id" "") { + discard; + stop; + } + if anyof ( address :is "from" "sysadmin@gnu.org", + address :is "from" "sysadmin-nonrt@gnu.org", address :is "to" "sysadmin-nonrt@gnu.org", address :is "from" "sysadmin-comment@gnu.org" ) { @@ -9,13 +15,14 @@ if anyof ( stop; } elsif anyof ( - header :contains "list-id" "", header :is "Return-path" "" ) { fileinto :create "rtcc"; stop; } + + if anyof ( header :regex "subject" "mailing list memberships reminder", address :is "to" "rtbounces@gnu.org",