From: Richard J. <ri...@an...> - 2005-02-08 14:22:59
|
On Mon, Feb 07, 2005 at 10:20:11PM +0100, Gerd Stolpmann wrote: > The generated mail uses CR LF as line separator. OK, I've confirmed that this is the case. Although it is, of course, correct to send CR LF in mail messages and the SMTP protocol, I'm not sure that it's correct to send CR LF to /usr/sbin/sendmail. Surely the "protocol" being used between the process and /usr/sbin/sendmail is pure Unix, therefore LF-terminated? > Although this is the standard for the mail messages themselves, it > might be that the "sendmail" command emulation of exim takes CR LF > as LF LF. Just a hypothesis. Exim doesn't mind about the CR LF in the mail headers. In the body, it gets confused, and appears to turn CR LF into LF LF. By "body", I'm also including the MIME headers for each of the two parts. The *really* weird thing about this bug, however, is that it only bites when sending mail non-locally. I can send mail locally (through exim), and it comes out just fine. When I send it non-locally, we get the bug. Anyway, in the meantime I have been able to workaround the bug, for both local and non-local mail, quite successfully, using: Netsendmail.sendmail ~mailer:"tr -d '\\015' | /usr/sbin/sendmail" msg=20 Attached is my test program. Rich. --=20 Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.c= om |