index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/interpret-mail | 16 |
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" |