dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d7bcdbdec41235c1c58c02ddbe750d3656b83e08
parent f2853fffd2a61cdad21789f4075b0800a6f11092
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 25 Apr 2019 10:09:05 +0200

Handle formatting in headers of english-language forwarded emails, remove tmp files

Diffstat:
M.mutt/muttprint-groff.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mutt/muttprint-groff.sh b/.mutt/muttprint-groff.sh @@ -41,6 +41,7 @@ mail_subject="$(grep '^Subject: ' "$infile")" grep -v "^Date: \|^From: \|^To: \|^Subject: \|^Cc:\|^X-Mailer: " "$infile" | \ sed 's/^>//;s/^ //' | cat --squeeze-blank | \ sed 's/\(Fra\|Dato\|Til\|Cc\|Emne\): /\n\1: /g' | \ + sed 's/\(From\|Date\|To\|Cc\|Subject\): /\n\1: /g' | \ sed '/^Links:$/Q'; } \ > "$tmpfile" @@ -51,4 +52,4 @@ preconv "$tmpfile" | groff -ms -T pdf > "$outfile" read -r $OPEN_PDF "$outfile" >/dev/null 2>&1 & sleep 1 -#rm "$infile" "$tmpfile" "$outfile" +rm "$infile" "$tmpfile" "$outfile"