summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/maildirproc/purdue.rc11
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 = {