|
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: Mon Feb 04 2008 - 09:59:38 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Feb 04, 2008 at 10:10:43AM -0500, Victor Duchovni wrote:
>On Mon, Feb 04, 2008 at 02:57:38PM +0000, scott.postfix
scottrix.co.uk wrote:
>
>> 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.
>
>Postfix is an MTA. It is the MUA's responsibility to inject valid content.
Fair enough.
>> 2) My MUA (mutt) is broken and is incorrectly identifying a DOS text
>> file as text/plain when it is not.
>
>The MUA (mutt) is responsible for submitting valid content. What are you
>doing with mutt, and what MIME content is mutt generating? Configure
>mutt to use a custom "sendmail" that just saves the message to a disk
>file. Report what you find in the disk file...
A text file is produced with the email in it, the attachment is text/plain
and the attachment has CRLF for each of it's lines.
It seems the problem is with the MUA (mutt) and I believe that mutt gets
the mime type from libmagic which also reports text/plain for the DOS text
file. It can the tell the difference since "file dos.txt" gives
"ASCII text, with CRLF line terminators"
So I guess I can get it to give a different output for the mimetype too.
Thanks for all your help with this,
Scott.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]