diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-11-23 16:03:29 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-23 16:03:29 +0100 |
commit | 44018d5e21de5f42612b003b584c3b42b0a8dd2a (patch) | |
tree | f9a151e93eaab3186aa2180cf67ede752043f60b /bin/email2irc.sh | |
parent | b9dd4d26aa8110da7e16313d3f383763626d32d7 (diff) | |
download | jenkins.debian.net-44018d5e21de5f42612b003b584c3b42b0a8dd2a.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-x | bin/email2irc.sh | 3 |
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 |