summaryrefslogtreecommitdiff
path: root/bin/interpret-mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/interpret-mail')
-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