[dovecot] Re: [bincimap] Re: Re: bincimap

Timo Sirainen tss at iki.fi
Mon Feb 17 21:48:13 EET 2003


On Mon, 2003-02-17 at 21:39, Timo Sirainen wrote:
> >         /* move the file into new/ directory - syncing will pick it
> >            up from there */
> >         if (rename(tmp_path, new_path) == 0)
> >                 failed = FALSE;
> > 
> > Here you can lose emails if the new/ folder contains a message whose base 
> > name is equal.
> 
> In theory, yes. In practice, I'd say not.

Courier and qmail-pop3d also use rename() instead of link()+unlink().
I'd say it's safe enough then.




More information about the dovecot mailing list