summaryrefslogtreecommitdiff
path: root/.maildirproc/default.rc
diff options
context:
space:
mode:
Diffstat (limited to '.maildirproc/default.rc')
-rw-r--r--.maildirproc/default.rc14
1 files changed, 10 insertions, 4 deletions
diff --git a/.maildirproc/default.rc b/.maildirproc/default.rc
index 15ea01c..cbb3e18 100644
--- a/.maildirproc/default.rc
+++ b/.maildirproc/default.rc
@@ -6,10 +6,17 @@ processor.maildir_base = "~/Maildir"
processor.auto_reload_rcfile = True
def is_to_or_from(mail,address):
+ """
+ Return true if [mail] is to or from an address that contains [address].
+ """
return (
mail["From"].contains(address)
or mail.target.contains(address))
def is_to_or_from_re(mail,address):
+ """
+ Return true if [mail] is to or from an address that matches the
+ regex [address].
+ """
return (
mail["From"].matches(address)
or mail.target.matches(address))
@@ -87,10 +94,8 @@ def my_filters(mail):
if (
False
- or mail["List-ID"].matches( "dev.list.parabolagnulinux.org")
- or is_to_or_from(mail, "dev@list.parabolagnulinux.org")
- or mail["List-ID"].matches("dev.lists.parabolagnulinux.org")
- or is_to_or_from(mail, "dev@lists.parabolagnulinux.org")
+ or mail["List-ID"].matches( "parabolagnulinux.org")
+ or is_to_or_from(mail, "parabolagnulinux.org")
):
mail.move(".software.parabola-dev")
return
@@ -248,6 +253,7 @@ def my_filters(mail):
if (
False
or mail["From"].contains("@msdlt.k12.in.us")
+ or mail["From"].contains("naviance.com")
or is_to_or_from(mail,"ibwhite@comcast.net")
or mail["Subject"].contains("IOA")
or mail["From"].contains("nths.org")