diff options
Diffstat (limited to '.config')
-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 = { |