diff options
author | Erich Eckner <git@eckner.net> | 2017-09-05 11:35:16 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-05 11:35:16 +0200 |
commit | 2af969d5ecd5c0b9de6399ad915e2f0d799eb418 (patch) | |
tree | d7a6d787ebdb685d9f12332029805c23950c4bb3 /bin | |
parent | 5f97ea17aea802d2903323ce65f2a0c85239501c (diff) | |
download | builder-2af969d5ecd5c0b9de6399ad915e2f0d799eb418.tar.xz |
bin/interpret-mail: remove automatic line breaks from email body
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/interpret-mail | 12 |
1 files changed, 11 insertions, 1 deletions
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 |