summaryrefslogtreecommitdiffstats
path: root/examples/bts_autosubscription.procmail
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:36:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:36:25 +0000
commit6077d258b500b20e1e705f5cda567400240c7804 (patch)
treea5d41c050bd69f91476994b0d30c0a8f1e7957b5 /examples/bts_autosubscription.procmail
parentInitial commit. (diff)
downloaddevscripts-upstream.tar.xz
devscripts-upstream.zip
Adding upstream version 2.21.3+deb11u1.upstream/2.21.3+deb11u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/bts_autosubscription.procmail')
-rw-r--r--examples/bts_autosubscription.procmail32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/bts_autosubscription.procmail b/examples/bts_autosubscription.procmail
new file mode 100644
index 0000000..635f047
--- /dev/null
+++ b/examples/bts_autosubscription.procmail
@@ -0,0 +1,32 @@
+# This handles initial submissions ("Thank you for the problem
+# report...") and also followups ("Thank you for the additional
+# information...").
+:0
+* ^To: Justin Pryzby <justinpryzby@users\.sourceforge\.net>$
+* ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
+* ^Subject: Bug#\/[0-9]*
+|echo |mail "$MATCH-subscribe@bugs.debian.org"
+
+# This handles bug reports on which I've had an effect via the control
+# bot. The 'To:' condition is necessary, otherwise I'd occasionally
+# be subscribed to a massive number of bugs when Don reassigns from
+# debbugs to bugs.d.o, or Eric from mozilla-firefox to firefox, and
+# I'm already subscribed to those packages anyway..
+:0
+* ^To: Justin Pryzby <justinpryzby@users\.sourceforge\.net>$
+* ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$
+* ^Subject: Processed:
+|grep -Eo '^Bug#[0-9]+:' |sed -e 's/^Bug#//' -e 's/:$/-subscribe@bugs.debian.org/ ' |tr '\n' ',' |sed -e 's/^/To: /' -e 's/,$/\n/' |sendmail -t
+
+:0
+* ^From: [0-9]+-subhelp@bugs\.debian\.org$
+* ^Subject: Please confirm subscription to [0-9]+@bugs.debian.org
+* ^Reply-To: \/.*@bugs\.debian\.org$
+|echo |mail "$MATCH"
+
+:0
+* ^From: [0-9]+-subhelp@bugs\.debian\.org$
+* ^Subject: Subscription to [0-9]+@bugs.debian.org successful$
+Mail/bug_subscription_success
+
+# vim:ft=procmail:ts