summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/maildirproc/att.rc27
-rw-r--r--.config/maildirproc/purdue.rc29
2 files changed, 46 insertions, 10 deletions
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 445d1ba..381ce8f 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -76,7 +76,7 @@ def handle_incoming_unknown(mail):
def my_filters(mail):
# Sort mail from GNU mailing lists
- for list in [ 'bug-gsrc', 'bug-make', 'help-make', 'social', 'help-grub', 'bug-gnuzilla' ]:
+ for list in [ 'bug-gsrc', 'bug-make', 'help-make', 'social', 'help-grub', 'bug-gnuzilla', 'bug-librejs' ]:
if (
False
or mail["List-Id"].matches(list+"\.gnu\.org")
@@ -101,6 +101,9 @@ def my_filters(mail):
if mail["List-Id"].matches("maintenance.lists.parabolagnulinux.org"):
if mail["From"].contains("monit@"):
if mail["Message-Id"].contains("@repo.parabolagnulinux.org"):
+ if mail["Subject"].matches("^\[Maintenance\] monit alert -- (Execution|Connection) (succeeded|failed) sshd$"):
+ mail.move(".software.parabola-maintenance.monit-repo.sshd")
+ return
mail.move(".software.parabola-maintenance.monit-repo")
return
if mail["Message-Id"].contains("@rshg054.dnsready.net"):
@@ -125,6 +128,9 @@ def my_filters(mail):
or is_to_or_from(mail, "parabolagnulinux.org")
or is_to_or_from(mail, "kiwwwi.com.ar")
):
+ if mail["Subject"].contains("[Django]"):
+ mail.move(".software.parabola-maintenance.django")
+ return
mail.move(".software.parabola-dev")
return
@@ -255,20 +261,21 @@ def my_filters(mail):
# Sort mail from software people
for address in [
- "gnu.org",
- "gnome.org",
+ "@archlinux.org",
+ "@fsf.org",
+ "@github.com",
+ "canonical.org",
+ "cnuk.org",
"eff.org",
+ "esr@thyrsus.com",
+ "foocorp.net",
"gitorious.org",
- "sourceforge.com",
+ "gnome.org",
+ "gnu.org",
"ietf.org",
"kde.org",
+ "sourceforge.com",
"trustees@core3.amsl.com",
- "esr@thyrsus.com",
- "canonical.org",
- "foocorp.net",
- "cnuk.org",
- "@archlinux.org",
- "@github.com",
]:
if is_to_or_from(mail,address):
mail.move(".software")
diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc
index 4ebfbc4..6d4b913 100644
--- a/.config/maildirproc/purdue.rc
+++ b/.config/maildirproc/purdue.rc
@@ -154,6 +154,35 @@ def my_filters(mail):
mail.move("INBOX.classes.2013-2.MA265")
return
+ # Spring 2014 ##########################################################
+
+ # COM217
+ if mail["Subject"].contains("Spring-2014-COM-21700-004"):
+ mail.move("INBOX.classes.2014-1.COM217")
+ return
+ if mail["From"].contains("mixable") and mail["Subject"].matches("^COM 21700"):
+ mail.move("INBOX.classes.2014-1.COM217.Mixable")
+ return
+ # CS252
+ if piazza_topic(mail, "CS 25200"):
+ mail.move("INBOX.classes.2014-1.CS252.Piazza")
+ return
+ # CS307
+ if is_to_or_from(mail, "dunsmore@purdue.edu") or mail["Subject"].contains("Spring-2014-CS-30700-LE1"):
+ mail.move("INBOX.classes.2014-1.CS307")
+ return
+ # SPAN102
+ if mail["Subject"].contains("spring-2014-span-102"):
+ mail.move("INBOX.classes.2014-1.SPAN102")
+ return
+ # STAT350
+ if is_to_or_from(mail, "ssellke@purdue.edu"):
+ mail.move("INBOX.classes.2014-1.STAT350")
+ return
+ if piazza_topic(mail, "STAT 35000 (SELLKE)"):
+ mail.move("INBOX.classes.2014-1.STAT350.Piazza")
+ return
+
handle_mapping = {
"INBOX": my_filters,
}