[Dovecot] Copy from INBOX to INBOX corrupts file

Timo Sirainen tss at iki.fi
Wed Oct 29 15:40:19 EET 2003


On Tue, 2003-10-28 at 13:39, Andreas Jaekel wrote:
> Aloha Timo.
> 
> I had some further looks into the folder corruption issue
> and it looks like non-blocking routines are being used.
> Could it be possible that you are setting the istream to
> non-blocking and that influences the ostream's/iostream's
> timeout_msecs settings?

I don't think it should be set non-blocking.. What makes it look like
they're used?

> io_add() is not being used, but the last bits of data
> were still just being written to an iov and write()
> was called only after some other operation.

Yes, flushing has to be done to ostream since it does buffer data even
in blocking mode.

I just did several changes in CVS to make copying inside same mbox
working. Lets see if those changes corrupt my mboxes.. :)




More information about the dovecot mailing list