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

Gerard gerard at seibercom.net
Tue Oct 23 21:18:14 EEST 2007


On Tuesday October 23, 2007 at 11:25:03 (AM) Hal Pomeranz wrote:

> > > > >Oct 21 19:36:01 postoffice1 dovecot: POP3(someuser): file mbox- 
> > > > >sync.c: line 1433 (mbox_sync_handle_eof_updates): assertion failed:  
> > > > >(file_size >= sync_ctx->expunged_space + trailer_size)
> > > > 
> > > > Does the file have CRLFs as linefeeds instead of plain LFs? CRLF  
> > > > handling is probably still a bit buggy.
> > > 
> > > The mbox files are standard Unix text, so LF only, right?  We haven't
> > > turned on the CRLF options in dovecot.conf, that's for sure.
> > 
> > Well, surprise, surprise.  The file does have CR-LF line endings,
> > and stripping out the CRs seems to make the problem go away.
> 
> 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?


-- 
Gerard


More information about the dovecot mailing list