]> git.madduck.net Git - etc/mailfilter.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

enable debbug autosubscription
authormartin f. krafft <madduck@madduck.net>
Fri, 20 Jun 2008 10:08:59 +0000 (12:08 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 20 Jun 2008 10:08:59 +0000 (12:08 +0200)
procmail/rules/debian
procmail/rules/debian-debbugs-autosubscribe [new file with mode: 0644]

index 686628fa93cfadc90ede04b3ff9f0fdabffc5a72..bd6c73167a3123bedfdfc3c40e4728219ecc97ac 100644 (file)
@@ -1,3 +1,5 @@
+INCLUDERC=$PMRULES/debian-debbugs-autosubscribe
+
 :0 E
 * ^X-Debian-Package: \/.+
 * ? grep -q "^${MATCH}$" $CONF/debian-packages
 :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 (file)
index 0000000..9aff294
--- /dev/null
@@ -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