Gentlemen, I can't take it anymore. That's why I hand it to $ cat spam-bug-reopener #!/bin/sh -eu #reopen a Debian bug closed by spam, which you feed in via stdin bug=$( perl -nwe 'if (s/^X-Debian-PR-Message: they-closed (\d+)$/$1/){print;exit}') if test $bug then echo reopen $bug| mail -s "Reopening $bug closed by spam" [email protected] else echo $0: no bug number found. 1>&2; exit 1 fi