diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-18 13:53:37 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-18 13:53:37 -0400 |
commit | 1bf624b56726501adffdfa3a0b703784521bbfcf (patch) | |
tree | 66fa9797377fc9e0be40e8513c2ad370a0b7a552 /.config/maildirproc/purdue.rc | |
parent | 8302a0fd388ec5decb2900780d52fd696f03f189 (diff) |
maildirproc/purdue.rc: add rules
Diffstat (limited to '.config/maildirproc/purdue.rc')
-rw-r--r-- | .config/maildirproc/purdue.rc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc index 45c031d..e075576 100644 --- a/.config/maildirproc/purdue.rc +++ b/.config/maildirproc/purdue.rc @@ -73,6 +73,10 @@ def my_filters(mail): mail.move("INBOX.Facebook") return + if is_to_or_from(mail,"@cable.comcast.com"): + mail.move("INBOX.Comcast") + return + if ( False or mail["Subject"].contains("[CS Opportunity Update]") @@ -115,14 +119,20 @@ def my_filters(mail): # Fall 2013 ############################################################ - if piazza_topic(mail, "CS 250") piazza_topic(mail,"CS 250-FALL2013") or mail["Subject"].contains("Fall-2013-CS-25000"): + if mail["Subject"].contains("Fall-2013-CS-25000"): mail.move("INBOX.classes.2013-2.CS250") return - if piazza_topic(mail, "CS 251") or mail["Subject"].contains("Fall-2013-CS-25100"): + if piazza_topic(mail, "CS 250") or piazza_topic(mail, "CS 250-FALL2013"): + mail.move("INBOX.classes.2013-2.CS250.Piazza") + return + if mail["Subject"].contains("Fall-2013-CS-25100"): mail.move("INBOX.classes.2013-2.CS251") return + if piazza_topic(mail, "CS 251"): + mail.move("INBOX.classes.2013-2.CS251.Piazza") + return if mail["Subject"].contains("Fall-2013-SPAN-10100"): - mail.move("INBOX.classes.2013-2.CS251") + mail.move("INBOX.classes.2013-2.SPAN101") return handle_mapping = { |