summaryrefslogtreecommitdiff
path: root/.config/maildirproc/purdue.rc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 16:11:24 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 16:17:39 -0400
commitf181c08119e7bf00ce6520331afb737321f350ad (patch)
tree56e871ea81cebf635e17566644b8775588921846 /.config/maildirproc/purdue.rc
parent7ee9aaeaa18608bbeb01c4fdb8e69d9772eebeb6 (diff)
maildirproc: update filters
Diffstat (limited to '.config/maildirproc/purdue.rc')
-rw-r--r--.config/maildirproc/purdue.rc16
1 files changed, 15 insertions, 1 deletions
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc
index d1505f9..f086eee 100644
--- a/.config/maildirproc/purdue.rc
+++ b/.config/maildirproc/purdue.rc
@@ -103,7 +103,12 @@ def my_filters(mail):
mail.move("INBOX.work.2013.Comcast")
return
- if is_to_or_from(mail,"@Cartus.com"):
+ if (
+ False
+ or is_to_or_from(mail,"@qualcomm.com")
+ or is_to_or_from(mail,"@Cartus.com")
+ or is_to_or_from(mail,"@quicinc.com")
+ ):
mail.move("INBOX.work.2015.qualcomm")
return
@@ -268,6 +273,9 @@ def my_filters(mail):
return
# CS448 (Databases)
if piazza_topic(mail, "CS 44800"):
+ mail.move("INBOX.classes.2015-1.CS448.Piazza")
+ return
+ if mail["Subject"].matches("CS *448"):
mail.move("INBOX.classes.2015-1.CS448")
return
# ME297 (FRC)
@@ -278,6 +286,12 @@ def my_filters(mail):
mail.move("INBOX.classes.2015-1.ME297")
return
# SOC324 (Criminology)
+ if mail["Subject"].contains("spring-2015-soc-32400"):
+ mail.move("INBOX.classes.2015-1.SOC324")
+ return
+
+ # Everything else #####################################################
+ mail.move("INBOX.ham");
handle_mapping = {
"INBOX": my_filters,