On Mon, 5 Jan 2004, Timo Sirainen wrote:
> Something I just thought about doing optionally: Mark the message
> expunged using some non-standard flag and expunge it later (maybe in
> some nightly run). Don't show expunge-marked messages to clients, unless
> they haven't been notified that it's been expunged.

This is exactly how shared expunges work in UW imapd's mbx format when the
IMAP server can not upgrade the shared lock to exclusive.

> Don't do the real
> expunging unless the flag was set less than hour ago.

In mbx format, the real expunge is done at any checkpoint or expunge that
is able to acquire an exclusive lock on the mailbox.

> 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.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to