Third attempt, which includes a necessary "To:" condition which avoids
being subscribed to packages and its newly submitted bugs, (which
isn't so much a problem except when other people submit lots of bugs).

-- 
Clear skies,
Justin
# This handles initial submissions ("Thank you for the problem
# report...") and also followups ("Thank you for the additional
# information...").
:0
* ^To: Justin Pryzby <[EMAIL PROTECTED]>$
* ^From: [EMAIL PROTECTED] \(Debian Bug Tracking System\)$
* ^Subject: Bug#\/[0-9]*
|echo |mail "[EMAIL PROTECTED]"

# This handles bug reports on which I've had an effect via the control
# bot.  The 'To:' condition is necessary, otherwise I'd occasionally
# be subscribed to a massive number of bugs when Don reassigns from
# debbugs to bugs.d.o, or Eric from mozilla-firefox to firefox, and
# I'm already subscribed to those packages anyway..
:0
* ^To: Justin Pryzby <[EMAIL PROTECTED]>$
* ^From: [EMAIL PROTECTED] \(Debian Bug Tracking System\)$
* ^Subject: Processed:
|grep -Eo '^Bug#[0-9]+:' |sed -e 's/^Bug#//' -e 's/:$/[EMAIL PROTECTED]/ ' |tr 
'\n' ',' |sed -e 's/^/To: /' -e 's/,$/\n/' |sendmail -t

:0
* ^From: [EMAIL PROTECTED]
* ^Subject: Please confirm subscription to [EMAIL PROTECTED]
* ^Reply-To: \/[EMAIL PROTECTED]
|echo |mail "$MATCH"

:0
* ^From: [EMAIL PROTECTED]
* ^Subject: Subscription to [EMAIL PROTECTED] successful$
Mail/bug_subscription_success

Reply via email to