diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-11-01 15:41:07 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-11-01 15:41:07 +0100 |
commit | 3a673a7591aac21ad9800bf9e4d3d9cf2ac12f3e (patch) | |
tree | 7c5539c33aecf0d73685152ed95c4f7c7237fd03 /bin | |
parent | fea045bc29917a1d0011544037ca430ef6040c28 (diff) | |
download | jenkins.debian.net-3a673a7591aac21ad9800bf9e4d3d9cf2ac12f3e.tar.xz |
email2irc: the email-ext plugin sometimes sends multi line subjects - deal with it
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/email2irc.sh | 5 |
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 |