From 2af969d5ecd5c0b9de6399ad915e2f0d799eb418 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Sep 2017 11:35:16 +0200 Subject: bin/interpret-mail: remove automatic line breaks from email body --- bin/interpret-mail | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/interpret-mail b/bin/interpret-mail index af63863..79abcca 100755 --- a/bin/interpret-mail +++ b/bin/interpret-mail @@ -96,9 +96,19 @@ sed -n ' /\n$/!ba s/\n$// p -' "${tmp_dir}/plain-content" > \ +' "${tmp_dir}/plain-content" | + sed ' + :a + /[:=]\s*$/N + s/:\s*\n/: / + ta + s/=\n//g + ta + ' > \ "${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-70-g09d2