17 Feb
2003
17 Feb
'03
8:48 p.m.
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.