From: martin f. krafft Date: Fri, 20 Jun 2008 10:08:59 +0000 (+0200) Subject: enable debbug autosubscription X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/36ed6727961922f8de82e8d263efe89a3a34c3d1?ds=sidebyside enable debbug autosubscription --- diff --git a/procmail/rules/debian b/procmail/rules/debian index 686628f..bd6c731 100644 --- a/procmail/rules/debian +++ b/procmail/rules/debian @@ -1,3 +1,5 @@ +INCLUDERC=$PMRULES/debian-debbugs-autosubscribe + :0 E * ^X-Debian-Package: \/.+ * ? grep -q "^${MATCH}$" $CONF/debian-packages diff --git a/procmail/rules/debian-debbugs-autosubscribe b/procmail/rules/debian-debbugs-autosubscribe new file mode 100644 index 0000000..9aff294 --- /dev/null +++ b/procmail/rules/debian-debbugs-autosubscribe @@ -0,0 +1,23 @@ +AUTOSUBSCRIBE_HEADER_TOKEN='X-debbugs-autosubscribe: madduck' + +:0 +* FROM ?? ^owner@bugs\.debian\.org \(Debian Bug Tracking System\)$ +* ^X-Debian-PR-Message: ack \/[0-9]+ +{ + :0 fw + |$FORMAIL -A "$AUTOSUBSCRIBE_HEADER_TOKEN" + + :0 + !$MATCH-subscribe@bugs.debian.org +} + +:0 EBH +* FROM ?? ^[0-9]+-subhelp@bugs\.debian\.org$ +* SUBJECT ?? ^Please confirm subscription to [0-9]+@bugs.debian.org \(.+\)$ +*$ ^$AUTOSUBSCRIBE_HEADER_TOKEN$ +* ^Reply-To: \/[0-9]+-subyes-.+@bugs\.debian\.org$ +!$MATCH + +AUTOSUBSCRIBE_HEADER_TOKEN + +# vim:ft=procmail