[Dovecot] CR-LF handling (WAS: Problem in mbox-sync.c)

Timo Sirainen tss at iki.fi
Sat Oct 27 18:50:38 EEST 2007


On Tue, 2007-10-23 at 14:18 -0400, Gerard wrote:
> > I've been thinking about this a little more since yesterday.  Is there
> > a reason why Dovecot shouldn't simply convert CR-LF line endings to LF
> > on the fly, or at least have a configuration option you can turn on 
> > that will do this?  This seems preferrable to blowing up with the error
> > cited above...
> 
> Maybe I am misunderstanding this thread, but aren't CRLF specifically
> mentioned in RFC822 and other RFCs?

It's mentioned in SMTP, IMAP, etc. RFCs, but nothing requires newlines
to be stored as CRLF in disk. They just need to be sent as CRLFs to
IMAP/POP3 clients (which Dovecot does).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20071027/9bcda593/attachment.bin 


More information about the dovecot mailing list