OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: CRLF Was: Postfix with entourage

From: Luca Berra (blucacomedia.it)
Date: Fri Jan 02 2004 - 15:42:43 CST


On Fri, Jan 02, 2004 at 01:24:43PM -0500, Wietse Venema wrote:
>Luca Berra:
>> would you consider adding some code for strict rfc2821 compliance, i
>> think i can produce a patch for it. (i deliver all my mail to a cyrus
>> server that just rejects it anyway)
>
>At this level you cannot enforce compliance. You can only modify
>or delete non-compliant data.
>
>Whether I would take a patch depends on the code.
>
ok
an UNTESTED patch is attached. it just considers bare CR as CRLF, except
for the multiple CR followed by LF which is considered a single CRLF
like previous behaviour (but i think i have to enforce a bound on the
number of consecutive CR, or even just consider all bare CR as CRLF, and
avoiding the two ugly loops)

making this behaviour configurable is easily done, but makes the thing
even uglier than it is already.

I'd be grateful if you could comment.

Regards,
L.

--
Luca Berra -- blucacomedia.it
        Communication Media & Services S.r.l.
 /"\
 \ / ASCII RIBBON CAMPAIGN
  X AGAINST HTML MAIL
 / \