On Fri, Sep 05, 2003 at 12:00:44PM +0200, Robert Vazan wrote:
> I would like to hear some references to standards that specify newline
> 
> conventions for various protocols: mailbox, sendmail pipe, c-client data
> 
> structures, Mahogany data structures.

 There is no formal standard for the mailbox but in practice the native
convention is used, i.e. LF under Unix and CRLF under Windows. I forgot
about sendmail pipe but this was discussed in depth some (long) time ago
and the existing code is correct (please don't change it!) in this
respect, so you can just have a look at it. C-client is EOL-agnostic,
AFAIK it doesn't do anything with the data. Finally, Mahogany should use
just LFs internally, always. The conversion should happen only when the
data gets in and when it comes out.

> I would like to hear how is each
> protocol tolerant to the other convention.

 This doesn't matter. It can be very tolerant (not at a protocol level,
of course, but on implementation level) but the existence of even a
single implementation enforcing the right thing is a reason good enough
to always get it right. And for SMTP there are quite a few
implementations (at least exim and qmail) which insist on the right
thing.

 In any case, I still don't really understand what the problem is. To
the best of my knowledge, we did do this part right and so the problem
must be in the composer as it is the only thing which has changed. Why
do you have to look at the CR/CRLF problems elsewhere if we have no
reason (that I know of) to suspect that they exist? You simply should
ensure that the composer never adds any CRs.

 Regards,
VZ


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to