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