summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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