According to Bill Cole via mailop <mailop-20160...@billmail.scconsult.com>:
>> Sorry, no, the CR (0x0d) in front of the LF (0x0a) is mandatory.  But 
>> you don't need anything after that.
>
>Pedantry: Dovecot stores linebreaks as LF-only, as does Apple Mail and 
>every other MUA I've seen on any modern Apple OS.

Indeed, and so did sendmail and qmail 30 years ago, but they carefully
add the CR on output and strip it on input.

>So one should read my answer assuming that I read his references to 0x0a 
>as meaning logical linebreaks, to avoid writing a lecture on the 
>subtleties of linebreaks in moving email vs stored text.

Honestly, it wasn't clear.  I know you've been doing this stuff as long as I 
have.

>One can send a headers-only message, which should end in a blank line 
>(CRLFCRLF on the wire, LFLF on disk)

Take a look at RFC 5322 section 3.5.  The body and the CRLF in front of it
are optional.  I agree that any mail program that barfs on a message that
only contains headers is pretty broken.

R's,
John
-- 
Regards,
John Levine, jo...@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

_______________________________________________
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop

Reply via email to