chiark / gitweb /
devscripts (2.10.69+squeeze4) stable-security; urgency=high
[devscripts.git] / examples / bts_autosubscription.procmail
1 # This handles initial submissions ("Thank you for the problem
2 # report...") and also followups ("Thank you for the additional
3 # information...").
4 :0
5 * ^To: Justin Pryzby <justinpryzby@users\.sourceforge\.net>$
6 * ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
7 * ^Subject: Bug#\/[0-9]*
8 |echo |mail "$MATCH-subscribe@bugs.debian.org"
9
10 # This handles bug reports on which I've had an effect via the control
11 # bot.  The 'To:' condition is necessary, otherwise I'd occasionally
12 # be subscribed to a massive number of bugs when Don reassigns from
13 # debbugs to bugs.d.o, or Eric from mozilla-firefox to firefox, and
14 # I'm already subscribed to those packages anyway..
15 :0
16 * ^To: Justin Pryzby <justinpryzby@users\.sourceforge\.net>$
17 * ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
18 * ^Subject: Processed:
19 |grep -Eo '^Bug#[0-9]+:' |sed -e 's/^Bug#//' -e 's/:$/-subscribe@bugs.debian.org/ ' |tr '\n' ',' |sed -e 's/^/To: /' -e 's/,$/\n/' |sendmail -t
20
21 :0
22 * ^From: [0-9]+-subhelp@bugs\.debian\.org$
23 * ^Subject: Please confirm subscription to [0-9]+@bugs.debian.org
24 * ^Reply-To: \/.*@bugs\.debian\.org$
25 |echo |mail "$MATCH"
26
27 :0
28 * ^From: [0-9]+-subhelp@bugs\.debian\.org$
29 * ^Subject: Subscription to [0-9]+@bugs.debian.org successful$
30 Mail/bug_subscription_success
31
32 # vim:ft=procmail:ts