]> git.wh0rd.org - home.git/blobdiff - .config/mail/filters.siv
cros-board: update
[home.git] / .config / mail / filters.siv
index 7e80bc2da300e8b661396dd0b8e86e6c69aa5413..a88d8b5bdadd0b365ef8797e41c451648b8e2644 100644 (file)
@@ -1,4 +1,5 @@
-# http://thsmi.github.com/sieve-reference/en/
+# https://thsmi.github.com/sieve-reference/en/
+# NB: Don't need to manually compile this as getmail will do it automatically.
 
 require "fileinto";
 require "imap4flags";
@@ -96,16 +97,28 @@ if anyof (
        # apcupsd
        header :contains "List-Id" "<apcupsd-users.lists.sourceforge.net>",
        # autotools
+       header :contains "List-Id" "<autoconf.gnu.org>",
+       header :contains "List-Id" "<automake.gnu.org>",
        header :contains "List-Id" "<libtool.gnu.org>",
+       header :contains "List-Id" "<bug-autoconf.gnu.org>",
        header :contains "List-Id" "<bug-automake.gnu.org>",
        header :contains "List-Id" "<bug-libtool.gnu.org>",
-       header :contains "List-Id" "<bug-autoconf.gnu.org>",
-       header :contains "List-Id" "<autoconf.gnu.org>",
        header :contains "List-Id" "<bug-m4.gnu.org>",
+       header :contains "List-Id" "<autoconf-patches.gnu.org>",
+       header :contains "List-Id" "<automake-patches.gnu.org>",
+       header :contains "List-Id" "<patches-libtool.gnu.org>",
+       header :contains "List-Id" "<patches-m4.gnu.org>",
+       header :contains "X-Gnu-PR-Package" "autoconf",
+       header :contains "X-Gnu-PR-Package" "automake",
+       header :contains "X-Gnu-PR-Package" "libtool",
        # bash
        header :contains "List-Id" "<bug-bash.gnu.org>",
        # bitpim
        header :contains "List-Id" "<bitpim-devel.lists.sourceforge.net>",
+       # bzip2
+       header :contains "List-Id" "<bzip2-devel_sourceware.org>",
+       header :contains "To" "bzip2-devel@sourceware.org",
+       header :contains "Cc" "bzip2-devel@sourceware.org",
        # chrome
        header :contains "List-Id" "<chrome-notebook-pilot-users.googlegroups.com>",
        # cldr
@@ -198,6 +211,8 @@ if anyof (
        header :contains "List-Id" "<mpfr.loria.fr>",
        # mtools
        header :contains "List-Id" "<info-mtools.gnu.org>",
+       # mutt
+       header :contains "List-Id" "<mutt-dev.mutt.org>",
        # nano
        header :contains "List-Id" "<nano-devel.gnu.org>",
        # nasm
@@ -244,8 +259,11 @@ if anyof (
        header :contains "Sender" "owner-openssl-dev@openssl.org",
        # strace
        header :contains "List-Id" "<strace-devel.lists.sourceforge.net>",
+       header :contains "List-Id" "<strace-devel.lists.strace.io>",
        header :contains "To" "strace-devel@lists.sourceforge.net",
        header :contains "Cc" "strace-devel@lists.sourceforge.net",
+       header :contains "To" "strace-devel@lists.strace.io",
+       header :contains "Cc" "strace-devel@lists.strace.io",
        # sudo
        header :contains "List-Id" "<sudo-workers.sudo.ws>",
        # syslinux
@@ -443,14 +461,14 @@ if anyof (
 #
 
 # Gentoo: graphics
-if anyof (
-       header :contains "To" "graphics@gentoo.org",
-       header :contains "Cc" "graphics@gentoo.org"
-)
-{
-       fileinto "gentoo.org/bugs/graphics";
-       stop;
-}
+#if anyof (
+#      header :contains "To" "graphics@gentoo.org",
+#      header :contains "Cc" "graphics@gentoo.org"
+#)
+#{
+#      fileinto "gentoo.org/bugs/graphics";
+#      stop;
+#}
 
 # Gentoo: openrc
 if anyof (
@@ -501,7 +519,7 @@ if anyof (
        header :contains "Cc" "gentoo-doc@lists.gentoo.org"
 )
 {
-       fileinto "gentoo.org/docs";
+       fileinto "gentoo.org/dev";
        stop;
 }
 
@@ -524,11 +542,11 @@ if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
        }
 
        # Gentoo: security bugzilla
-       elsif allof (header :contains "To" "security@gentoo.org")
-       {
-               fileinto "gentoo.org/bugs/hardened";
-               stop;
-       }
+#      elsif allof (header :contains "To" "security@gentoo.org")
+#      {
+#              fileinto "gentoo.org/bugs/hardened";
+#              stop;
+#      }
 
        # Gentoo: bugzilla me
        elsif allof (header :contains "To" "vapier@gentoo.org")
@@ -538,10 +556,13 @@ if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
        }
 
        # Gentoo: arches
-       elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org")
+       elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|riscv|s390|sh|sparc|x86)@gentoo.org")
        {
                # stable/keyword req
-               if anyof(header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE)")
+               if anyof(
+                       header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE|CC-ARCHES)",
+                       header :regex "X-Bugzilla-Component" "(Keywording|Stabilization)"
+               )
                {
                        setflag "\\Seen";
                        fileinto "gentoo.org/bugs/arches/noise";
@@ -563,8 +584,8 @@ if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
 
 # Gentoo: arches
 if anyof (
-       header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org",
-       header :regex "Cc" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org"
+       header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|riscv|s390|sh|sparc|x86)@gentoo.org",
+       header :regex "Cc" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|riscv|s390|sh|sparc|x86)@gentoo.org"
 )
 {
        fileinto "gentoo.org/bugs/arches";
@@ -585,13 +606,15 @@ if anyof (
 }
 
 # Gentoo: -commits
-if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>")
-{
-       fileinto "gentoo.org/commits";
-       stop;
-}
+#if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>")
+#{
+#      fileinto "gentoo.org/commits";
+#      stop;
+#}
 
 if anyof (
+       # Don't really get mail from this anymore.
+       header :contains "List-Id" "<gentoo-commits.gentoo.org>",
        # -project
        header :contains "List-Id" "<gentoo-project.gentoo.org>",
        header :contains "List-Id" "<gentoo-soc.gentoo.org>",
@@ -603,6 +626,8 @@ if anyof (
        header :contains "List-Id" "<gentoo-dev-announce.gentoo.org>",
        header :contains "List-Id" "<gentoo-devhelp.gentoo.org>",
        header :contains "From" "no-reply@socghop.appspotmail.com",
+       # gentoo-nfp
+       header :contains "List-Id" "<gentoo-nfp.gentoo.org>",
        # gentoo-licenses
        header :contains "List-Id" "<gentoo-licenses.gentoo.org>",
        # gentoo-qa
@@ -620,13 +645,6 @@ if anyof (header :contains "List-ID" "<gentoo.gentoo.github.com>")
        stop;
 }
 
-# Gentoo: NFP
-if anyof (header :contains "List-Id" "<gentoo-nfp.gentoo.org>")
-{
-       fileinto "gentoo.org/nfp";
-       stop;
-}
-
 # Gentoo: -core
 if anyof (header :contains "List-Id" "<gentoo-core.gentoo.org>")
 {