summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-05 13:20:23 +0200
committerErich Eckner <git@eckner.net>2017-09-05 13:20:23 +0200
commitab3dd8fcfe75d8df0c357a26ca748318db6b1462 (patch)
tree4e5e2d2e95311688298ef1f9169736b3f050cf46 /bin
parent2af969d5ecd5c0b9de6399ad915e2f0d799eb418 (diff)
downloadbuilder-ab3dd8fcfe75d8df0c357a26ca748318db6b1462.tar.xz
bin/interpret-mail: repair line breaks
Diffstat (limited to 'bin')
-rwxr-xr-xbin/interpret-mail18
1 files changed, 11 insertions, 7 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 79abcca..1b3d0d3 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -99,16 +99,20 @@ sed -n '
' "${tmp_dir}/plain-content" |
sed '
:a
- /[:=]\s*$/N
- s/:\s*\n/: /
- ta
- s/=\n//g
- ta
+ /[:=]\s*$/{
+ N
+ s/:\s*\n/: /
+ ta
+ s/=\n//g
+ ta
+ }
+ :b
+ N
+ s/\n\([^ :]\+\(\s\|\n\)\)/ \1/
+ tb
' > \
"${tmp_dir}/raw-content"
-cat "${tmp_dir}/raw-content" >&2
-
sed -n "$(
while read -r action; do
if [ -z "${action}" ]; then