Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-05 11:35:16 +0200
committerErich Eckner <git@eckner.net>2017-09-05 11:35:16 +0200
commit2af969d5ecd5c0b9de6399ad915e2f0d799eb418 (patch)
treed7a6d787ebdb685d9f12332029805c23950c4bb3
parent5f97ea17aea802d2903323ce65f2a0c85239501c (diff)
bin/interpret-mail: remove automatic line breaks from email body
-rwxr-xr-xbin/interpret-mail12
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