From ab3dd8fcfe75d8df0c357a26ca748318db6b1462 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Sep 2017 13:20:23 +0200 Subject: bin/interpret-mail: repair line breaks --- bin/interpret-mail | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'bin/interpret-mail') 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 -- cgit v1.2.3