Hi all,

I just got a problem trying to send a mail with M because this message
had an XML file attached that had only one very long line. As this file
was not encoded at all, the SMTP server refused the message because of
the very long line.

I did another test: copy any binary file (I chose a PNG image) and give
it a filename with a TXT extension: given the extension, M decides that
this must be a TEXT/PLAIN attachment, and does not encode it: you end up
trying to send a binary file unencoded (in this case, the file was not
even complete, because of some control char just after the PNG header).

On the other hand, if a file with an unrecognized extension happens to
be a pure text file, it will be unnecessarily encoded.

It seems M only relies on the MIME type to decide if it should encode
the file.

Shouldn't M try to analyze a little bit more what kind of file is
attached, encoding if and only if this is necessary, whatever the
MIME type?

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to