It happens from time to time that bug reports I file receive attention, but I don’t notice because our bug tracking system still does not auto-subscribe bug submitters to their own bugs (see bug #37078 and bug #351856). I thus decided to take the matter into my own hands.
Just in time, before I started hacking this up myself, I found
Justin Pryzby’s
procmail recipies, which are installed to
/usr/share/doc/devscripts/examples/bts_autosubscription.procmail
by the devscripts package. The
result is available in my
mailfilter git repository. So far, I only auto-subscribe in
response to bugs I file; Justin also auto-subscribes to bugs he
manipulates via the control bot.
For completeness, I also wanted to subscribe to all bugs that I
have submitted. This turned out to be easier than I thought, thanks
to bts in the devscripts package;
note the sleep instruction in the loop to prevent
hammering the system:
bts select submitter:madduck@debian.org \
| while read bugno; do
echo X-debbugs-autosubscribe: madduck \
| sendmail -f madduck@debian.org ${bugno}-subscribe@bugs.debian.org
echo subscription to \#${bugno} sent
sleep 30
done
NP: The Dukes of Leisure: The Dukes of Leisure

