]> git.madduck.net Git - etc/mailfilter.git/blobdiff - procmail/rules/debian-debbugs-autosubscribe

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:

let smartlist confirmations pass
[etc/mailfilter.git] / procmail / rules / debian-debbugs-autosubscribe
index 9aff2944191e80dcdd164815c18e4fac025c902a..b379f7fac8e41b272b1a0f8baa67488fdb832e3e 100644 (file)
@@ -2,13 +2,11 @@ AUTOSUBSCRIBE_HEADER_TOKEN='X-debbugs-autosubscribe: madduck'
 
 :0
 * FROM ?? ^owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
-* ^X-Debian-PR-Message: ack \/[0-9]+
+* MESSAGE ?? ^ack \/[0-9]+
 {
-  :0 fw
-  |$FORMAIL -A "$AUTOSUBSCRIBE_HEADER_TOKEN"
-
+  LOG="debian:      auto-subscribing to bug #$MATCH$NL"
   :0
-  !$MATCH-subscribe@bugs.debian.org
+  |echo $AUTOSUBSCRIBE_HEADER_TOKEN | $SENDMAIL $SENDMAILFLAGS -f madduck@debian.org $MATCH-subscribe@bugs.debian.org
 }
 
 :0 EBH