Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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