diff options
Diffstat (limited to '.config/maildirproc/att.rc')
-rw-r--r-- | .config/maildirproc/att.rc | 27 |
1 files changed, 17 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") |