<<< Date Index >>>     <<< Thread Index >>>

Re: Bug#176332: mutt-utf8: mutt mixes up UTF-8 and ISO-Latin-1 attachments



Hello Sebastian, much thanks for the complete report.

    It seems Marco forwarded your Debian report upstream to mutt-dev
list, but AFAICS it never appeared there nor on Mutt's BTS. So CC
mutt-dev ML.

 On Sunday, January 12, 2003 at 3:12:01 AM +0100, Sebastian Rittau wrote:

>| LANG=de_DE.UTF-8
>| #set charset="utf-8"
>| set send_charset="us-ascii:iso-8859-1:iso-8859-15:utf-8"
> It seems that mutt mixes up UTF-8 and ISO-8859-1 encoded attachments.
> If I try to attach a UTF-8 encoded attachment to a mail, mutt sets the
> MIME type to "text/plain, 8bit, iso-8859-1".

    Normal and good: Mutt assumes text is in $charset, and converts it
upon sending to best suited $send_charset. Here your original UTF-8 will
be sent as Latin-1.


> If, on the other hand, I try to attach a ISO-8859-1 encoded file, mutt
> sets the MIME type to "text/plain, 8bit, utf-8". This is very
> irritating, since I always have to change the MIME type per hand in
> these cases.

    Your file is not compatible with $charset. There are invalid UTF-8
byte sequences. Mutt can't do anything else but fail. You already found
necessary <edit-type> function to inform Mutt about real file charset.

    In one word: Not a Mutt bug, just the normal way Mutt is designed.


    But perhaps turn this into an enhancement wish to include the
$file_charset feature of JA patch. Look at similar Mutt wishlist #1106
at <URL:http://bugs.guug.de/db/11/1106.html>. I wrote there:

|| set file_charset="ucs-2:utf-8:windows-1252"
|
| This makes Mutt guess in which original charset in this list (or their
| subsets) the text file is, then send it converted gracefully to one of
| $send_charset. And if guess fails, because text is in yet another
| charset, there is always the <edit-type>+noconv workar^Wsolution.
|
| In practice it's very handy, especially when one frequently switches
| between different terminals with different charsets, but always attach
| text files in one or two fixed charsets.


Bye!    Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for East Europe Latin-2/CP-852/CP-1250 terminal users):
set 
send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1250:utf-8"