diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-28 21:02:47 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-28 21:02:47 -0400 |
commit | 67a217962dcff14e70ca3ca696b2b45372259403 (patch) | |
tree | 83cbb5e49e1e68a20a7d032aa49cef6cc67d64e7 /.maildirproc | |
parent | 0a04173d7e0031aea71037ece6b4cf3d19c4138f (diff) |
tweak mail filters
Diffstat (limited to '.maildirproc')
-rw-r--r-- | .maildirproc/default.rc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.maildirproc/default.rc b/.maildirproc/default.rc index a0f1af8..05efbcb 100644 --- a/.maildirproc/default.rc +++ b/.maildirproc/default.rc @@ -92,13 +92,18 @@ def my_filters(mail): mail.move(".software.social") return - if mail["List-ID"].matches("maintenance.lists.parabolagnulinux.org"): + if mail["List-Id"].matches("help-grub.gnu.org"): + mail.move(".software.help-grub") + return + + if mail["List-Id"].matches("maintenance.lists.parabolagnulinux.org"): mail.move(".software.parabola-maintenance") return if ( False - or mail["List-ID"].matches("parabolagnulinux.org") + or mail["List-Id"].matches("parabolagnulinux.org") or is_to_or_from(mail, "parabolagnulinux.org") + or is_to_or_from(mail, "parabola.nu") ): mail.move(".software.parabola-dev") return @@ -197,7 +202,6 @@ def my_filters(mail): "esr@thyrsus.com", "canonical.org", "foocorp.net", - "parabolagnulinux.org", "cnuk.org", ]: if is_to_or_from(mail,address): @@ -227,11 +231,11 @@ def my_filters(mail): mail.move(".CompTIA") return - if mail["From"].contains("@lnnorthstar.org"): + if is_to_or_from(mail, "@lnnorthstar.org"): mail.move(".School.Newspaper") return - if mail["From"].contains("susyphil@aol.com"): + if is_to_or_from(mail,"susyphil@aol.com"): mail.move(".PMCH") for address in [ |