Noel J. Bergman wrote:
for each message of a 2000 message mbox the file will have
to be copied 2000 times.


What if the delete operation locked the file and queued the delete for a
background thread, which would kick off in, oh let's say 1 second?  The
delete thread would run through the deletion list, and then unlock the file.
In the common case where there is either a single delete, or when POP3
deletes a whole series at once (when the POP3 session finishes), the mailbox
could do all of the deletes in a single pass, sorted by position within the
file.

As I understand how some POP3 implementations work, when you delete a file, it doesn't actually delete the message until the POP3 session ends. The POP3 mailbox is locked for the scope of a POP3 session, otherwise the message number would change.


--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com/
p. 1.301.656.5501
e. [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to