summaryrefslogtreecommitdiff
path: root/.config/maildirproc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-03-26 15:28:11 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-03-26 15:28:11 -0400
commitea607b1e0d2648a67508b57fdfccaf8cc8e3ae80 (patch)
tree8bd3e5482917466ba1862c77be7b587683e3822f /.config/maildirproc
parent165b849169b85ee86d0b07dc56012efcec2b0eba (diff)
parent0712c9d148075e4f19b650aa675942f2a413b55e (diff)
Merge branch 'master' into build64-par/master
Diffstat (limited to '.config/maildirproc')
-rw-r--r--.config/maildirproc/att.rc9
-rw-r--r--.config/maildirproc/purdue.rc12
2 files changed, 17 insertions, 4 deletions
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 6b31260..7ee5f42 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -7,7 +7,6 @@ import datetime
processor.maildir_base = "~/Maildir"
processor.auto_reload_rcfile = True
-processor.logfile = os.getenv('XDG_CACHE_HOME', "~/.cache")+"/maildirproc/att.log"
def is_to_or_from(mail,address):
"""
@@ -77,8 +76,10 @@ def handle_incoming_unknown(mail):
or is_to_or_from(mail, "parabola.nu")
or is_to_or_from(mail, "parabolagnulinux.org")
or mail["From"] == "MAILER-DAEMON@yahoo.com"
+ or mail["From"] == "3174451635@mms.att.net"
or mail["From"].contains("@facebookmail.com>")
or mail["From"].contains("@gandi.net")
+ or mail["From"].contains("@github.com>")
or mail["From"].contains("@goodwillindy.org>")
or mail["From"].contains("@lpi.org>")
or mail["From"].contains("@msdlt.k12.in.us>")
@@ -86,6 +87,7 @@ def handle_incoming_unknown(mail):
or mail["From"].contains("@post.oreilly.com>")
or mail["From"].contains("@scouting.org>")
or mail["From"].contains("@wolframalpha.com>")
+ or mail["From"].contains("margieshu@sbcglobal.net")
or mail["From"].contains("parabolagnulinux.org")
or mail["List-Id"].matches(".*\.(gnu|gnome|archlinux|parabolagnulinuxlibre)\.org")
or mail["List-Id"].matches(".*\.parabola\.nu")
@@ -287,6 +289,10 @@ def my_filters(mail):
move_ham(mail,".School.Robotics")
return
+ if mail["Subject"].contains("[Quizroom]"):
+ move_ham(mail,".School.CS408")
+ return
+
# Sort mail from software people
for address in [
"@archlinux.org",
@@ -301,6 +307,7 @@ def my_filters(mail):
"@gnu.org",
"@ietf.org",
"@kde.org",
+ "@nongnu.org",
"@sourceforge.com",
"@thyrsus.com",
"trustees@core3.amsl.com",
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc
index b1f64af..d1505f9 100644
--- a/.config/maildirproc/purdue.rc
+++ b/.config/maildirproc/purdue.rc
@@ -5,7 +5,6 @@ import subprocess
processor.maildir_base = "~/Maildir.purdue"
processor.auto_reload_rcfile = True
-processor.logfile = os.getenv('XDG_CACHE_HOME', "~/.cache")+"/maildirproc/purdue.log"
def is_to_or_from(mail,address):
"""
@@ -104,6 +103,10 @@ def my_filters(mail):
mail.move("INBOX.work.2013.Comcast")
return
+ if is_to_or_from(mail,"@Cartus.com"):
+ mail.move("INBOX.work.2015.qualcomm")
+ return
+
if (
False
or mail["Subject"].contains("[CS Opportunity Update]")
@@ -265,10 +268,13 @@ def my_filters(mail):
return
# CS448 (Databases)
if piazza_topic(mail, "CS 44800"):
- mail.move("INBOX.classes.2015.1.CS448")
+ mail.move("INBOX.classes.2015-1.CS448")
return
# ME297 (FRC)
- if mail["Subject"].contains("[ME297]"):
+ if (False
+ or mail["Subject"].contains("[ME297]")
+ or is_to_or_from(mail, "heller5@purdue.edu")
+ ):
mail.move("INBOX.classes.2015-1.ME297")
return
# SOC324 (Criminology)