summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-28 09:30:49 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-28 09:30:49 +0100
commitd6727d7f74eafd62219379a7cc7f17b12817f975 (patch)
treedec6c73f8f33f0d8e80ef1885a3be7b41bf6dd96
parent03a6b4fd7c814ec1de5d02c239c0d473be25db73 (diff)
downloadjenkins.debian.net-d6727d7f74eafd62219379a7cc7f17b12817f975.tar.xz
properly deal with quoted-printable continuation lines
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/email2irc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 2a5ed1f6..605372d4 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -88,8 +88,8 @@ while read -r line ; do
# deal with quoted-printable continuation lines: 2nd line/time
# if $MY_LINE ends with '=', then append the next line to $MY_LINE,
# changing the '=' to a single space.
- MY_2ND_LINE=$(echo $MY_2ND_LINE | sed -s 's#=$# #')
- MY_LINE="$MY_2ND_LINE $MY_LINE"
+ MY_2ND_LINE=$(echo $MY_2ND_LINE | sed -s 's#=$##')
+ MY_LINE="${MY_2ND_LINE}$MY_LINE"
debug123 "#5" MY_LINE $MY_LINE
debug123 "#6" MY_2ND_LINE $MY_2ND_LINE
fi