[Sorry that it took me so long to respond...]

* Alain Bench <[EMAIL PROTECTED]> [2006-06-10 23:24]:
> Hello Thomas, and thank you for your reports.
> 
>  On Friday, June 9, 2006 at 11:38:33 +0200, Thomas Bleher wrote:
> 
> > When trying to attach
> > http://www.cip.ifi.lmu.de/~bleher/mutt-mime-bug.tar.gz , mutt assigns
> > the file the type and encoding "text/plain, quoted, utf-8"
> 
>     The foolable heuristic Mutt uses to guess text or binary attachment
> type would not be used at all if there was a tar.gz entry in one of the
> mime.types files. Example I have this line in /usr/local/etc/mime.types
> (straight from Mutt tarball):
> 
> | application/x-tar-gz                tgz tar.gz
> 
>     And attaching your file shows [applica/x-tar-gz, base64, 1,4K].

Thank you for this very helpful answer.
I think that this line should be added to the mime.types file.

I'd still like to keep this bug open, though, because mutt's heuristics
could be improved[0], and in doubt it should send data as
application/octet-stream to avoid mangling them. Maybe mutt could also 
use file(1) to determine the type of data.

Thanks,
Thomas

[0]: In this case, looking for embedded NULLs would have been enough
(4th byte of the file in question).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to