On 2.6.2012, at 1.23, Bron Gondwana wrote:
> This probably shits the purists as much as anything else.
> But I can tell you for sure that the FastMail web interface
> does its "Delete Permanently" as:
>
> $Res = $Self->store($Uids, "+flags", "(\\seen \\deleted)")
> && $Self->uidexpunge($Uids)
> && $Self->refresh_count('');
>
> Which is an extra roundtrip to the server and an extra lock and
> parse of the mailbox index.
It doesn't need to be an extra roundtrip. You can run uidexpunge even if store
fails and it doesn't do anything bad. By avoiding the extra roundtrip it is
possible for the server to optimize the STORE+EXPUNGE into equivalent of ERASE.
(Dovecot does halfway that - it for example doesn't rename maildir files on
STORE stage, just unlinks them on EXPUNGE.)
_______________________________________________
imap5 mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/imap5