]> git.madduck.net Git - etc/mailfilter.git/blob - procmail/rules/debian

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

remove fuzzyocr
[etc/mailfilter.git] / procmail / rules / debian
1 :0
2 *$ ^X-Debian-PR-Message:$RE_EXTRACT_HEADER_VALUE
3 { MESSAGE="$MATCH" }
4
5 :0
6 * FROM ?? ^owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
7 * MESSAGE ?? ^ack-info
8 {
9   LOG="debian:      discarding BTS reply acknowledgement$NL"
10   SWITCHRC=$PMDIR/discard
11 }
12
13 RE_DEBBUG="[0-9][0-9][0-9][0-9][0-9][0-9]"
14
15 :0
16 *$ MSGID ?? ^\<handler\.$RE_DEBBUG\.D$RE_DEBBUG\.[0-9]+\.ackdone@bugs\.debian\.org
17 {
18   LOG="debian:      discarding BTS ackdone message$NL"
19   SWITCHRC=$PMDIR/discard
20 }
21
22 :0
23 * ^X-Debian: PTS$
24 {
25   :0
26   *$ ^X-Debian-Package:$RE_EXTRACT_HEADER_VALUE
27   { SRCPACKAGE="$MATCH" }
28
29   :0
30   *$ ^X-PTS-Keyword:$RE_EXTRACT_HEADER_VALUE
31   {
32     PTSKEYWORD="$MATCH"
33     LOG="debian:      PTS '$MATCH' message for ${SRCPACKAGE:-unknown package}$NL"
34   }
35 }
36
37 :0 E
38 {
39   :0
40   *$ ^X-Debian-PR-Package:$RE_EXTRACT_HEADER_VALUE
41   { PACKAGE="$MATCH" }
42
43   :0
44   *$ ^X-Debian-PR-Source:$RE_EXTRACT_HEADER_VALUE
45   {
46     SRCPACKAGE="$MATCH"
47     LOG="debian:      message related to source package $MATCH$NL"
48   }
49 }
50
51 INCLUDERC=$PMRULES/debian-debbugs-autosubscribe
52
53 :0
54 * EQ_TO ?? ^logcheck-(devel|commits)@lists\.alioth\.debian\.org$
55 { DEST=debian.logcheck }
56
57 :0 E
58 * EQ_TO ?? ^libkdtree-(devel|commits)@lists\.alioth\.debian\.org$
59 { DEST=debian.libkdtree++ }
60
61 :0 E
62 * EQ_TO ?? ^pkg-mdadm-(devel|commits)@lists\.alioth\.debian\.org$
63 { DEST=debian.mdadm }
64
65 :0 E
66 * EQ_TO ?? ^netconf-(devel|commits)@lists\.alioth\.debian\.org$
67 { DEST=debian.netconf }
68
69 :0 E
70 * SRCPACKAGE ?? .
71 * ? $FGREP -q "${SRCPACKAGE}" $CONF/debian-packages
72 { DEST=debian.$SRCPACKAGE }
73
74 :0 E
75 * 1^0 EQ_TO ?? ^(madduck|press)@debconf\.org$
76 * 1^0 EQ_TO ?? ^debconf-team@lists\.debconf\.org$
77 { DEST=debian.debconf }
78
79 :0 E
80 * EQ_TO ?? ^.+@debian\.(org|ch|net)$
81 { DEST=debian }
82
83 # delay messages until next weekend
84 :0
85 *     1 ^0 ORIGINAL_TO ?? deb(ian\.(org|ch|net)|conf\.org)@
86 *     1 ^0 ^X-Debian-
87 * -1000 ^0 JUSTME ?? .
88 *  1000 ^0 JUSTME ?? ^explicitly excepted address$
89 * -1000 ^0 EQ_TO ?? ^debian-security-announce@lists\.debian\.org$
90 * -1000 ^0 EQ_TO ?? ^debian-devel-announce@lists\.debian\.org$
91 * -1000 ^0 EQ_TO ?? ^debian-announce@lists\.debian\.org$
92 { DELAY="$DELAY_NEXT_WEEKEND" }
93
94 MESSAGE
95 SRCPACKAGE
96 PACKAGE
97 PTSKEYWORD
98 RE_DEBBUG
99
100 # vim:ft=procmail