OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Problem sending a DOS text file from Linux to Windows.

From: Wietse Venema (wietseporcupine.org)
Date: Mon Feb 04 2008 - 09:06:40 CST


scott.postfixscottrix.co.uk:
> Sorry for being a pain, but I want to get this clear. I can only see two
> things that could be wrong to get to the problem I am having.
>
> 1) Postfix is broken and should be detecting when text/plain attachments
> have CRLF and not add the CR.

No. The Postfix sendmail command expects input in UNIX TEXT format.
If you provide something different, then all bets are off.

> 2) My MUA (mutt) is broken and is incorrectly identifying a DOS text file
> as text/plain when it is not.

begin speculation

Your MUA (mutt) simply does what you told it to do. If you told it
to use Content-type: text/plain, while the input is not in UNIX
TEXT format, then all bets are off.

end speculation

The mere fact that some MTAs silently strip the extra CR does not
make it right.

        Wietse