Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/interpret-mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/interpret-mail')
-rwxr-xr-xbin/interpret-mail16
1 files changed, 6 insertions, 10 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 1b3d0d3..effca9c 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -98,18 +98,14 @@ sed -n '
p
' "${tmp_dir}/plain-content" |
sed '
- :a
- /[:=]\s*$/{
+ :start_loop
+ $!{
N
- s/:\s*\n/: /
- ta
- s/=\n//g
- ta
+ bstart_loop
}
- :b
- N
- s/\n\([^ :]\+\(\s\|\n\)\)/ \1/
- tb
+ s/=\s*\n//g
+ s/:\s*\n/: /g
+ s/\n\(\S\+[^: ]\(\s\|\n\|$\)\)/ \1/g
' > \
"${tmp_dir}/raw-content"