summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/maildirproc/att.rc9
-rw-r--r--.config/maildirproc/purdue.rc68
2 files changed, 45 insertions, 32 deletions
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 4532bec..e37b62f 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -101,6 +101,7 @@ def handle_incoming_unknown(mail):
# Whitelist
if (
False
+ or is_to_or_from(mail, "@purestorage.com")
or is_to_or_from(mail, "Bryan@ChankTunUnGi.onmicrosoft.com")
or is_to_or_from(mail, "cacnedcomms@gmail.com")
or is_to_or_from(mail, "fsf.org")
@@ -158,6 +159,10 @@ def handle_incoming_unknown(mail):
return
def my_filters(mail):
+ if is_to_or_from(mail,"@purestorage.com"):
+ move_ham(mail, ".purestorage")
+ return
+
# Sort mail from various mailing lists
# https://lists.gnu.org/mailman/options/bug-librejs/lukeshu@sbcglobal.net
# https://lists.nongnu.org/mailman/options/libreboot/lukeshu@sbcglobal.net
@@ -187,6 +192,10 @@ def my_filters(mail):
):
move_ham(mail, ".software.parabola")
return
+
+ if is_to_or_from(mail, "liberationtech-jobs@lists.stanford.edu"):
+ move_ham(mail, ".software.jobs")
+ return
# Sort mail from some social websites
if mail["From"].matches("facebook(|mail)\.com"):
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc
index 952e356..11b0d46 100644
--- a/.config/maildirproc/purdue.rc
+++ b/.config/maildirproc/purdue.rc
@@ -33,6 +33,10 @@ def piazza_topic(mail, topic):
def my_filters(mail):
# Generic stuff ########################################################
+ if is_to_or_from(mail,"@purestorage.com"):
+ mail.move("INBOX.purestorage")
+ return
+
if (
False
or mail["Subject"].contains("[PASE]")
@@ -347,38 +351,38 @@ def my_filters(mail):
# Spring 2016 ##########################################################
- # CS 422 (Networking)
- if (
- False
- or mail["Subject"].contains("spring-2016-cs-42200")
- or is_to_or_from(mail, "rkarandi@cs.purdue.edu")
- ):
- mail.move("INBOX.classes.2016-1.CS422")
- return
- # CS 456 (Programming Languages)
- if piazza_topic(mail, "CS 456"):
- mail.move("INBOX.classes.2016-1.CS456.Piazza")
- return
- # VFS 491 (Mafia in the Movies)
- if (
- False
- or mail["Subject"].contains("spring-2016-fvs-49100")
- or is_to_or_from(mail, "lawton@purdue.edu")
- ):
- mail.move("INBOX.classes.2016-1.FVS491")
- return
- # FRC 4272
- if (
- False
- or mail["Subject"].contains("[ME297]")
- or is_to_or_from(mail, "firstteam4272@gmail.com")
- or is_to_or_from(mail, "@tscstudents.net")
- or is_to_or_from(mail, "abenyeho@purdue.edu")
- or is_to_or_from(mail, "Henry65@purdue.edu")
- or is_to_or_from(mail, "chang282@purdue.edu")
- ):
- mail.move("INBOX.classes.2016-1.FRC4272")
- return
+ # # CS 422 (Networking)
+ # if (
+ # False
+ # or mail["Subject"].contains("spring-2016-cs-42200")
+ # or is_to_or_from(mail, "rkarandi@cs.purdue.edu")
+ # ):
+ # mail.move("INBOX.classes.2016-1.CS422")
+ # return
+ # # CS 456 (Programming Languages)
+ # if piazza_topic(mail, "CS 456"):
+ # mail.move("INBOX.classes.2016-1.CS456.Piazza")
+ # return
+ # # VFS 491 (Mafia in the Movies)
+ # if (
+ # False
+ # or mail["Subject"].contains("spring-2016-fvs-49100")
+ # or is_to_or_from(mail, "lawton@purdue.edu")
+ # ):
+ # mail.move("INBOX.classes.2016-1.FVS491")
+ # return
+ # # FRC 4272
+ # if (
+ # False
+ # or mail["Subject"].contains("[ME297]")
+ # or is_to_or_from(mail, "firstteam4272@gmail.com")
+ # or is_to_or_from(mail, "@tscstudents.net")
+ # or is_to_or_from(mail, "abenyeho@purdue.edu")
+ # or is_to_or_from(mail, "Henry65@purdue.edu")
+ # or is_to_or_from(mail, "chang282@purdue.edu")
+ # ):
+ # mail.move("INBOX.classes.2016-1.FRC4272")
+ # return
# Everything else #####################################################
mail.move("INBOX.ham");