summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-23 16:05:38 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-23 16:05:38 +0100
commit3ac5b1d643796d00d87889feb506a8081c2626e3 (patch)
tree9b2a0bfc5a65386d8a0fc13315712c1bbd643470 /bin/email2irc.sh
parent9bd78ccf02fc3dd0872f62b40b5919dff621acfd (diff)
downloadjenkins.debian.net-3ac5b1d643796d00d87889feb506a8081c2626e3.tar.xz
YOLO: deal with quoted-printable continuation lines, change the '=' at 1st lineend into a space character
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 0871cab9..33beea41 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -87,7 +87,8 @@ while read -r line ; do
else
# deal with quoted-printable continuation lines: 2nd line/time
# if $MY_LINE ends with '=', then append the next line to $MY_LINE,
- # TODO: changing the '=' to a single space.
+ # changing the '=' to a single space.
+ 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