From 4a1dbb6dcf0b5efc26d366b164707311332354c9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 31 Dec 2011 18:31:57 -0500 Subject: update --- .maildirproc/default.rc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '.maildirproc/default.rc') 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") -- cgit v1.2.3-54-g00ecf