Bug#37078: procmail for bugsubscriptions
I'm using the included procmail file for subscribing myself to all
bugs for which I am the submitter, or on which I have commented.
I see 4 problems:
It is implemented on the clientside, and it would IMHO be better if
debbugs implemented it (but that is known:).
It doesn't track control bot messages. So if I tag a bug, but don't
otherwise comment on it, I won't get subscribed. I want to be able
to do so.
It doesn't subscribe me to bugs that I've commented on in the past.
This could be solved by a solution to #293166: bug.debian.org:
"Provide list of bugs on which I have commented".
It might subscribe me multiple times. I don't know if the BTS
handles this gracefully. In the worst case, I will get subscribed
to a bug for each time I comment on it. In the best case, the BTS
will ignore the initial "subscribe" message from addresses which are
already subscribed (or, in the case of an
subscribe-this-*other*-address command, that the other address is
subscribed), and this will reduce mail traffic. This can probably
be fixed by adding an 'grep -w $MATCH &&' before sending the
messages.
--
Clear skies,
Justin
# This handles the mail "Thank you for the problem report ..."
# And also the mail: "Thank you for the additional information ..."
:0
* ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
* ^Subject: Bug#\/[0-9]*
|echo |mail "$MATCH-subscribe@bugs.debian.org"
# TODO: Subscribe to all bugs I've affected via control bot.
# This is difficult because there's not necessarily anything useful to
# MATCH in the subject, and matching the body is more complicated than
# I want to deal with now.
# :0
# * ^To: Justin Pryzby <justinpryzby@users\.sourceforge\.net>
# * ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
# * ^Subject: Processed:
# |echo |mail "$MATCH-subscribe@bugs.debian.org"
:0
* ^From: [0-9]+-subhelp@bugs\.debian\.org$
* ^Subject: Please confirm subscription to [0-9]+@bugs.debian.org
* ^Reply-To: \/.*@bugs\.debian\.org$
|echo |mail "$MATCH"
:0
* ^From: [0-9]+-subhelp@bugs\.debian\.org$
* ^Subject: Subscription to [0-9]+@bugs.debian.org successful$
Mail/bug_subscription_success
Reply to: