On Tue, 2012-01-17, anton wrote:
> Hi,
>
> using mutt 1.5.20 here (from ubuntu 10.04 LTS). Recently I received a
> mail with two attachments of type "text/plain". If I press "v" on the
> message (when being on the index), I see the folowing:
>
> I 1 <no description> [multipa/alternativ, 7bit, 7.2K]
> I 2 ??????><no description> [text/plain, 7bit, iso-8859-1, 0.7K]
> I 3 ??????><no description> [text/html, 7bit, iso-8859-1, 6.3K]
> A 4 file1.txt [text/plain, 8bit, us-ascii, 2.3K]
> A 5 file2.txt [text/plain, 8bit, us-ascii, 2.3K]
>
> It turns out that both file1.txt and file2.txt have non ascii characters
> in it, following the Latin-1 encoding. So I suppose the "us-ascii" part
> is misleading (the message was sent by Thunderbird MUA).
I don't know for sure how MIME defines us-ascii, but I'm pretty sure
that's a broken mail you're looking at.
> When viewing
> the message on the pager, these characters are replaced with the "?"
> character.
>
> So far so good. The problem is that if I save the attachmets (using
> 's'), the saved files are also translated, so that non ascii characters
> are replaced again by the "?" character.
That part sounds clearly as a bug.
I assume mutt's goal is "take this attachment and save it in the
user's favorite encoding". At the point where it writes that '?', it
*knows* that the MIME information lied to it and that it can never
perform that translation correctly. It would be better to display an
error message and not save anything.
It's different if the MIME information is consistent, but the
attachment still cannot be converted because the mail contains
characters which aren't present in "the user's favorite encoding".
> If I manually change the mime type of the attachment (using ctrl-e and
> setting "application/octet-stream", for instance) the files are
> correctly saved on disk.
>
> So my question is: is any way to tell mutt "ok, the mime information may
> be wrong. In any case, I want you to save the attachment as-is to the
> disc, i.e. without any translation etc".
Hope someone else can answer here.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/
snipabacken.se> O o .