diff options
-rw-r--r-- | .maildirproc/default.rc | 14 | ||||
-rw-r--r-- | .offlineimaprc | 1 |
2 files changed, 13 insertions, 2 deletions
diff --git a/.maildirproc/default.rc b/.maildirproc/default.rc index 7ea1ef0..6644b9b 100644 --- a/.maildirproc/default.rc +++ b/.maildirproc/default.rc @@ -85,7 +85,13 @@ def my_filters(mail): mail.move(".software.social") return - if mail["List-ID"].matches("dev.lists.parabolagnulinux.org"): + 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") + ): mail.move(".software.parabola-dev") return @@ -95,7 +101,11 @@ def my_filters(mail): mail.move(".Social.Facebook") return - if mail["From"].matches("identi\.ca"): + if ( + False + or mail["From"].matches("identi\.ca") + or mail["From"].matches("statusnet") + ): mail.move(".Social.Identica") return diff --git a/.offlineimaprc b/.offlineimaprc index 0e44147..c5fd3f5 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -8,6 +8,7 @@ remoterepository = Remote [Repository Local] type = Maildir localfolders = ~/Maildir +nametrans = lambda foldername: re.sub('^\.', '', foldername) [Repository Remote] type = IMAP |