Contents |
- Make sure that the imap USE flag is set!
# emerge mutt
Problem: mutt charset is UTF-8, but danish letters are displayed like '\345'
Cause: This can have two causes: your .mailcap does not handle ISO-8859-1, and/or no charset is specified in the mail header.
Solution:
The following entry to .mailcap handles ISO-8859-1 by converting it to UTF-8, and defaulting to plain 'cat' if not ISO-8859-1:
text/plain; iconv -f iso-8859-1 -t utf-8 %s; \
test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-1; \
copiousoutput
text/plain; cat -s; copiousoutput
When charset is not specified in the mail header, we could just assume ISO-8859-1. Edit .mutt/muttrc:
set assumed_charset="iso-8859-1"
s=[mailbox name] move message to mailbox $ purge deleted messages d delete message = top * bottom c=[mailbox name] change index to mailbox
T tag messages from regex pattern t tag single message ;s=[mailbox name] copy tagged message to mailbox ;d delete tagged messages