diff options
Diffstat (limited to '.config/maildirproc')
-rw-r--r-- | .config/maildirproc/att.rc | 15 | ||||
-rw-r--r-- | .config/maildirproc/purdue.rc | 12 |
2 files changed, 24 insertions, 3 deletions
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc index ac70c8a..e862b3f 100644 --- a/.config/maildirproc/att.rc +++ b/.config/maildirproc/att.rc @@ -99,10 +99,22 @@ def my_filters(mail): return if mail["List-Id"].matches("maintenance.lists.parabolagnulinux.org"): + if mail["From"].contains("monit@"): + if mail["Message-Id"].contains("@repo.parabolagnulinux.org"): + mail.move(".software.parabola-maintenance.monit-repo") + return + if mail["Message-Id"].contains("@rshg054.dnsready.net"): + mail.move(".software.parabola-maintenance.monit-rshg054") + return + if mail["Subject"].matches("Cron <.*@repo>"): + mail.move(".software.parabola-maintenance.cron-repo") + return + if mail["Subject"].matches("Cron <.*@rshg054>"): + mail.move(".software.parabola-maintenance.cron-rshg054") + return mail.move(".software.parabola-maintenance") return - if is_to_or_from(mail, "parabola.nu"): mail.move(".software.parabola-labs") return @@ -228,7 +240,6 @@ def my_filters(mail): mail.move(".School.Robotics") return for subject_re in [ - "FIRST", "robotics", "1024", "kil-?a-?bytes", diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc index e075576..0ffc1e6 100644 --- a/.config/maildirproc/purdue.rc +++ b/.config/maildirproc/purdue.rc @@ -73,7 +73,11 @@ def my_filters(mail): mail.move("INBOX.Facebook") return - if is_to_or_from(mail,"@cable.comcast.com"): + if ( + False + or is_to_or_from(mail,"@cable.comcast.com") + or is_to_or_from(mail,"@apexsystemsinc.com") + ): mail.move("INBOX.Comcast") return @@ -134,6 +138,12 @@ def my_filters(mail): if mail["Subject"].contains("Fall-2013-SPAN-10100"): mail.move("INBOX.classes.2013-2.SPAN101") return + if mail["Subject"].contains("Fall-2013-MA-26100"): + mail.move("INBOX.classes.2013-2.MA261") + return + if mail["Subject"].contains("Fall-2013-MA-26500"): + mail.move("INBOX.classes.2013-2.MA265") + return handle_mapping = { "INBOX": my_filters, |