There is also Muttprint. It does support UTF-8 and its output looks decent by default. Muttprint uses LaTeX and provides hooks for customization.
Since I am printing mails from different environments I can't use a default printer. Thus I have set it up (via ~/.muttrc
) to use a PDF viewer where I can dynamically select a printer:
set print_command='set -e; f=`mktemp`; \
muttprint -P A4 -p TO_FILE:"$f"; evince "$f"; rm "$f"'
Mktemp uses /tmp
, by default. For using a custom cache directory:
set print_command='set -e; f=`mktemp -p "$HOME"/.cache/mutt`; \
muttprint -P A4 -p TO_FILE:"$f"; evince "$f"; rm "$f"'
Btw, you can set print_decode
inside muttrc to configure if the print_command is able to decode MIME, encodings etc. on its own. By default it is set to yes
which is the right setting for commands like muttprint
, enscript
etc.
Regarding the UTF-8 issues of a2ps, enscript and mp one can just conclude that they should be considered obsolete. Indeed, looking at the project pages they don't seem to be maintained (e.g. last news item of the mp page is from 2002 and it mentions a mailing list located at Sun).
Best Answer
What's wrong with the
h
key in the pager?That switches between full headers and "weeded" minimal headers. The set of "minimal" headers can be defined in your
~/.muttrc
withignore
andunignore
commands. e.g. i have the following in my ~/.muttrc:BTW,
h
is the default binding fordisplay-toggle-weed
:man muttrc
and search forweed
for more info.