summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-01 15:41:07 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-01 15:41:07 +0100
commit3a673a7591aac21ad9800bf9e4d3d9cf2ac12f3e (patch)
tree7c5539c33aecf0d73685152ed95c4f7c7237fd03 /bin/email2irc.sh
parentfea045bc29917a1d0011544037ca430ef6040c28 (diff)
downloadjenkins.debian.net-3a673a7591aac21ad9800bf9e4d3d9cf2ac12f3e.tar.xz
email2irc: the email-ext plugin sometimes sends multi line subjects - deal with it
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 294fcbfa..8633dd0f 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -29,6 +29,11 @@ while read line ; do
# catch Subject (to send to IRC later)
if [[ $line =~ ^(Subject: .*) ]] ; then
SUBJECT=${line:9}
+ # the email-ext plugin sometimes sends multi line subjects..
+ NEXT=read line
+ if [ "${NEXT:1}" = " " ] ; then
+ SUBJECT="${SUBJECT}${NEXT}"
+ fi
fi
# determine the channel to send notifications to
# by parsing the To: line