]> 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 nteconf and logcheck special handling
[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 ?? ^pkg-mdadm-(devel|commits)@lists\.alioth\.debian\.org$
59 { DEST=debian.mdadm }
60
61 :0 E
62 * SRCPACKAGE ?? .
63 * ? $FGREP -q "${SRCPACKAGE}" $CONF/debian-packages
64 { DEST=debian.$SRCPACKAGE }
65
66 :0 E
67 * 1^0 EQ_TO ?? ^(madduck|press)@debconf\.org$
68 * 1^0 EQ_TO ?? ^debconf-team@lists\.debconf\.org$
69 { DEST=debian.debconf }
70
71 :0 E
72 * EQ_TO ?? ^.+@debian\.(org|ch|net)$
73
74   DELAY
75   DEST=debian
76 }
77
78 # delay messages until next weekend
79 #:0
80 #*     1 ^0 ORIGINAL_TO ?? deb(ian\.(org|ch|net)|conf\.org)@
81 #*     1 ^0 ^X-Debian-
82 #* -1000 ^0 JUSTME ?? .
83 #*  1000 ^0 JUSTME ?? ^explicitly excepted address$
84 #* -1000 ^0 EQ_TO ?? ^debian-security-announce@lists\.debian\.org$
85 #* -1000 ^0 EQ_TO ?? ^debian-devel-announce@lists\.debian\.org$
86 #* -1000 ^0 EQ_TO ?? ^debian-announce@lists\.debian\.org$
87 #{ DELAY="$DELAY_NEXT_WEEKEND" }
88
89 MESSAGE
90 SRCPACKAGE
91 PACKAGE
92 PTSKEYWORD
93 RE_DEBBUG
94
95 # vim:ft=procmail