summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/maildirproc/purdue.rc32
1 files changed, 31 insertions, 1 deletions
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc
index e5ed066..6a37bc3 100644
--- a/.config/maildirproc/purdue.rc
+++ b/.config/maildirproc/purdue.rc
@@ -33,16 +33,46 @@ def my_filters(mail):
mail.move("INBOX.PASE")
return
- if mail["Subject"].contains("[PLUG]"):
+ if (
+ False
+ or mail["Subject"].contains("[PLUG]")
+ or is_to_or_from(mail,"Purduealumni@purdue.edu")
+ or is_to_or_from(mail,"pase@purdue.edu")
+ ):
mail.move("INBOX.PLUG")
return
+ if mail["From"].matches(".*bursar.*@purdue\.edu"):
+ mail.move("INBOX.tuition")
+ return
+
+ if mail["From"].contains("mailhub-admin@purdue.edu"):
+ mail.move("INBOX.mailhub-admin")
+ return
+
+ if mail["From"].matches("pmx-.*@purdue.edu"):
+ mail.move("INBOX.spam")
+ return
+
if is_to_or_from(mail,"linkedin.com"):
mail.move("INBOX.LinkedIn")
return
if (
False
+ or is_to_or_from(mail,"@edrtrust.com")
+ or is_to_or_from(mail,"@propertysolutions.com")
+ or is_to_or_from(mail,"collegestationapartments@gmail.com")
+ ):
+ mail.move("INBOX.CollegeStation")
+ return
+
+ if mail["From"].matches("facebook(|mail)\.com"):
+ mail.move("INBOX.Facebook")
+ return
+
+ if (
+ False
or mail["Subject"].contains("[CS Opportunity Update]")
or mail["Subject"].contains("[CS Majors]")
):