index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-09-06 09:11:00 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-06 09:11:00 +0200 |
commit | ae05b79ccc0d4cae8c0f0da298369ddb634d9818 (patch) | |
tree | dc98f065c2562d582f40570fb0a2b2d8d1040e18 /bin/interpret-mail | |
parent | 18187f8f540a80aae22b98087b90579b013d6a35 (diff) |
-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" |