[Dovecot] CR-LF handling (WAS: Problem in mbox-sync.c)
Hal Pomeranz
hal at deer-run.com
Tue Oct 23 18:25:03 EEST 2007
> > > >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...
--
Hal Pomeranz, Founder/CEO Deer Run Associates hal at deer-run.com
Network Connectivity and Security, Systems Management, Training
More information about the dovecot
mailing list