On Mon, 2004-01-05 at 06:47, Mark Crispin wrote:
> > With mbox this could be done by adding a new header (X-IMAP-Expunged:
> > timestamp).
> 
> Indeed, but the problem with traditional UNIX mailbox format is that
> shared access itself is a problem if the messages can move about in the
> mailbox.  Plus, there's the problem with interaction with legacy UNIX
> applications that alter traditional UNIX mailbox format files.

I don't think it's that much of a problem. It may be slow when other
applications modify it though. My plan is:

- whenever mtime or size changes "unexpectedly", resync everything
- whenever we modify or sync the mailbox, keep shared lock for two extra
seconds so we can be sure that we're the only one who did modifications
at a given mtime
- to actually support the fast shared access, we'd have a log of recent
changes in X-IMAP-Log: <timestamp> <change description>, .. header in
first mail. If the log doesn't contain our last known change, resync
everything

Or I'm not sure if I'll bother with the last one, it can be done more
easily with separate index files.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to