On 16 Jul 2003, Timo Sirainen wrote:

> On Wed, 2003-07-16 at 22:53, Mark Crispin wrote:
> > It is a reason to say "I don't want to have garbage-collection depend upon
> > exclusive access."  If so, then you need a more complex mechanism than is
> > used in UW imapd's mbx driver.
>
> rename(). You rewrite the file and rename it over the old one. Next
> synchronization check notices this and reopens the file.
>
> Of course this may not be the fastest way if the file is large, which it
> is when message bodies are stored into the file. I was mostly thinking
> about index files while the actual message bodies would be stored
> elsewhere.

That does not scale well. We find multi-100Mbyte mbx mailboxes common
and our heavy-weight users have multi-Gigabyte mbx mailboxes.


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to