[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: aliases: do not blindly forward jenkins@ mails, otherwise procmail doesn't get...

Mattia Rizzolo gitlab at salsa.debian.org
Mon Mar 18 05:41:44 GMT 2019


Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
12fa047e by Mattia Rizzolo at 2019-03-18T05:39:22Z
aliases: do not blindly forward jenkins@ mails, otherwise procmail doesn't get a chance at filtering them (breaking IRC email2irc)

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
ac80b2b5 by Mattia Rizzolo at 2019-03-18T05:40:18Z
slightly more complex procmailrc, forwarding to root emails that are not meant for email2irc

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


2 changed files:

- hosts/common/etc/aliases
- jenkins-home/procmailrc


Changes:

=====================================
hosts/common/etc/aliases
=====================================
@@ -1,4 +1,3 @@
 # See man 5 aliases for format
 postmaster: root
-jenkins:    root
 root:       holger at layer-acht.org, mattia at debian.org


=====================================
jenkins-home/procmailrc
=====================================
@@ -1,3 +1,24 @@
-:0
-*From: jenkins at jenkins.debian.net
+#! /usr/bin/procmail
+
+# collect the argument, i.e. what is after 'jenkins+'
+ARG = $1
+# uncomment to enable debbuging logfile
+#VERBOSE=yes
+#LOGFILE=/tmp/mailproc
+
+
+# only pass to email2irc mails that seemingly are what we want...
+:0W
+* From: jenkins at jenkins.debian.net
+* ^X-Jenkins-Job
+* ARG ?? .+
 | /srv/jenkins/bin/email2irc.sh
+
+# ...and forward to root what doesn't look sane (note: this doesn't forward
+# mails that were passed to email2irc.sh but then failed there)
+:0cE
+! root
+
+# if we get this far, ignore whatever's left
+:0
+/dev/null



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/8d50f28780a1f55426c31093ec69df1230a9ad26...ac80b2b5ea1a36c43806267a044bf371103c8a95

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/8d50f28780a1f55426c31093ec69df1230a9ad26...ac80b2b5ea1a36c43806267a044bf371103c8a95
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190318/af8b161a/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list