|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
scott.postfix
scottrix.co.uk
Date: Fri Feb 01 2008 - 09:11:19 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Feb 01, 2008 at 09:56:50AM -0500, Wietse Venema wrote:
>scott.postfix
scottrix.co.uk:
>> Hi
>>
>> I am having a problem sending a Dos (CRLF) text file from Linux to Windows
>> as an attachment (mimetype = text/plain, encoding = 7bit). I am using mutt
>> as my email client and postfix (2.4.5) as my MTA. When the file is
>> received the CRLF has been replaced by CRLFCRLF, if I send the same file to
>> myself (on Linux) then the CRLF line endings have been replaced with LFLF.
>> Creating a double line spacing effect.
>>
>> To try to narrow down the problem I replaced the MTA that mutt uses with a
>> bash script to dump the file out to a log. This log showed that the
>> message still contained just one CRLF line ending on each line.
>>
>> I then ran tcpdump so monitor the outgoing smtp connect that postfix was
>> making. This showed that the line ending had changed from CRLF to CRCRLF.
>> I am guessing that something somewhere is changing the LF at the end of the
>> lines to CRLF despite the fact that each line already contains this
>> combination.
>>
>> I am not sure where to go from here to find out what is going on, any help
>> would be appreciated. If you require anymore information please let me
>> know.
>
>UNIX systems don't use DOS textfile formats. Use the unix2dos
>command (or similar tool) to properly handle DOS text files on a
>UNIX system.
From what I have managed to find on the web the SMTP protocol uses CRLF
text to transfer text data around, now I assume that postfix is doing the
conversion from unix text (LF) to SMTP text (CRLF), if the text is already
in that format and since it is text data and not binary is there a problem
with leaving text that is already (CRLF) alone ?
Regards,
Scott.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]