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

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:

98bab8d81599bc0dba18ffe7810cb402cc431d86
[etc/mailfilter.git] / procmail / rules / debian-debbugs-autosubscribe
1 AUTOSUBSCRIBE_HEADER_TOKEN='X-debbugs-autosubscribe: madduck'
2
3 :0
4 * FROM ?? ^owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
5 * MESSAGE ?? ^ack \/[0-9]+
6 {
7   :0 fw
8   |$FORMAIL -A "$AUTOSUBSCRIBE_HEADER_TOKEN"
9
10   LOG="debian:      auto-subscribing to bug #$MATCH$NL"
11
12   :0
13   |echo |$SENDMAIL $SENDMAILFLAGS -f madduck@debian.org $MATCH-subscribe@bugs.debian.org
14 }
15
16 :0 EBH
17 * FROM ?? ^[0-9]+-subhelp@bugs\.debian\.org$
18 * SUBJECT ?? ^Please confirm subscription to [0-9]+@bugs.debian.org \(.+\)$
19 *$ ^$AUTOSUBSCRIBE_HEADER_TOKEN$
20 * ^Reply-To: \/[0-9]+-subyes-.+@bugs\.debian\.org$
21 !$MATCH
22
23 AUTOSUBSCRIBE_HEADER_TOKEN
24
25 # vim:ft=procmail