Re: [Imap-uw] CRLF

2009-09-28 Thread Mark Crispin

On Mon, 28 Sep 2009, Oswald Buddenhagen wrote:

hmm, i think i interpolated that from the formats.txt and other files.
also, with the unix driver (LF in the mailboxes), imapd still delivers nicely
CRLF-terminated lines.


The traditional UNIX format is incapable of preserving newlines.  Thus its 
driver must convert newlines in data, both incoming and outgoing.


mix and mbx do not have this problem.

This is all c-client library.  None of this has anything to do with imapd. 
imapd and IMAP protocol exist solely in a world where newline is CRLF, and 
a CR or LF by itself is not a newline.


If your MDA really has LF-newlines, then something converted the CRLFs 
carried by SMTP to LF.  You should fix whatever did that, instead of 
thinking that your MDA should convert LF-newline to CRLF.


-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
___
Imap-uw mailing list
Imap-uw@u.washington.edu
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw


Re: [Imap-uw] CRLF

2009-09-28 Thread Oswald Buddenhagen
On Sun, Sep 27, 2009 at 08:35:53AM -0700, Mark Crispin wrote:
> On Sun, 27 Sep 2009, Oswald Buddenhagen wrote:
>> my MDA uses mail_append() with a mail_string. the string contents are
>> not pre-normalized to CRLF upon the call.
>
> Do you really mean an MDA (Message Delivery Agent, called by an
> incoming SMTP server)?
>
yes

> I don't know why you think that this results in the IMAP server being 
> non-compliant with the spec;
>
hmm, i think i interpolated that from the formats.txt and other files.
also, with the unix driver (LF in the mailboxes), imapd still delivers nicely
CRLF-terminated lines.

> If you want to store an RFC 5322-compliant message in mix (and IMAP!)
> you must present an RFC 5322-compliant message in the mail_string
> presented to mail_append().
>
ok, that's the statement i needed to hear. thanks.

regards
___
Imap-uw mailing list
Imap-uw@u.washington.edu
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw