From jan.idzikowski at knowledgetools.de Wed Dec 18 09:45:33 2013 From: jan.idzikowski at knowledgetools.de (Jan Idzikowski) Date: Wed, 18 Dec 2013 10:45:33 +0100 Subject: [cl-smtp-devel] [PATCH] Prevent sending of bare LFs that are rejected by qmail. In-Reply-To: <42E0EDCC-BF66-4EEB-BF5F-BD348E72377C@megawarne.com> References: <42E0EDCC-BF66-4EEB-BF5F-BD348E72377C@megawarne.com> Message-ID: <1387359933.15346.3.camel@ji-desktop> Hi Justin, thanks for your bug report and patch. A new version of cl-smtp is available. best regards Jan Idzikowski -- Jan Idzikowski From justin at megawarne.com Tue Dec 17 23:17:48 2013 From: justin at megawarne.com (Justin Megawarne) Date: Tue, 17 Dec 2013 23:17:48 +0000 Subject: [cl-smtp-devel] [PATCH] Prevent sending of bare LFs that are rejected by qmail. Message-ID: <42E0EDCC-BF66-4EEB-BF5F-BD348E72377C@megawarne.com> Hi, all. There is a problem when sending plain-text messages with newlines to qmail via CL-SMTP. Bare LFs should never be sent as newlines, but this is allowed through in some cases. http://cr.yp.to/docs/smtplf.html When CL-SMTP encounters a #\NewLine in the message body, it simply outputs it to the stream. On Linux, Mac, etc. these get turned into bare LFs. qmail rejects this non-compliant behaviour. It has a config setting called USE_FIXCRIO to transparently convert bare LFs into CRLFs. However, it would be much nicer if CL-SMTP sent the right thing, and, besides, magic fixing is prohibited by the RFC. Below is a patch that should resolve the problem. I have not had an opportunity to test on other MTAs. ? cl-smtp-fix-newline.patch Index: cl-smtp.lisp =================================================================== RCS file: /project/cl-smtp/cvsroot/cl-smtp/cl-smtp.lisp,v retrieving revision 1.22 diff -r1.22 cl-smtp.lisp 114c114 < (write-char c stream)) --- > (write-blank-line stream)) -- Justin Megawarne mailto:justin at megawarne.com skype:jmegawarne?call -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: Message signed with OpenPGP using GPGMail URL: