diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-08 10:08:12 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-08 10:08:12 -0400 |
commit | 153d31083211bad2f87cdc162f1b25218cb2879c (patch) | |
tree | 3a293184af0a2ebe9370ee005d392d5412ea82bb /.config/maildirproc | |
parent | 173c3cf1859b2adcae5abd534f31bdd8018d2a7e (diff) |
add more filters to my purdue mail filter
Diffstat (limited to '.config/maildirproc')
-rw-r--r-- | .config/maildirproc/purdue.rc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc index 9a759f5..e5ed066 100644 --- a/.config/maildirproc/purdue.rc +++ b/.config/maildirproc/purdue.rc @@ -65,15 +65,20 @@ def my_filters(mail): # Spring 2013 ########################################################## + if mail["Subject"].contains("[CS240] Submission result for"): + mail.move("INBOX.classes.2013-1.CS240.autograder") + return if mail["Subject"].contains("[CS240]") or mail["Subject"].contains("Spring-2013-CS-24000"): mail.move("INBOX.classes.2013-1.CS240") return if piazza_topic(mail, "CS 240"): mail.move("INBOX.classes.2013-1.CS240.Piazza") return - - if mail["Subject"].contains("Spring-2013-CS-18200"): - mail.move("INBOX.classes.2013-1.CS182") + if mail["Subject"].matches(".*(PHYS|CHIP)\s*220.*") or is_to_or_from(mail,"srdas@purdue.edu"): + mail.move("INBOX.classes.2013-1.PHYS220") + return + if mail["Subject"].contains("Spring-2013-SOC-22000"): + mail.move("INBOX.classes.2013-1.SOC220") return handle_mapping = { |