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

Timo Sirainen tss at iki.fi
Tue Oct 23 19:03:54 EEST 2007


On 23.10.2007, at 18.25, Hal Pomeranz 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...

I think removing CRs wouldn't be very nice, and it would require more  
code that could be just as buggy. The correct way to handle this  
would be to just fix it to work with CRs. Most of the code already is  
there, there are probably just a few places where the handling is  
wrong. But since the workaround is easy and I've a lot other more  
important things in my TODO list, things are as they are..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20071023/f18747cb/attachment.bin 


More information about the dovecot mailing list