From 36ed6727961922f8de82e8d263efe89a3a34c3d1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 20 Jun 2008 12:08:59 +0200 Subject: [PATCH 1/1] enable debbug autosubscription --- procmail/rules/debian | 2 ++ procmail/rules/debian-debbugs-autosubscribe | 23 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 procmail/rules/debian-debbugs-autosubscribe 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 -- 2.39.5