Oops, I've hit Send button too soon... Andreas Aardal Hanssen wrote:
> Can an IMAP server implement RENAME in such a way that it is compliant > with IMAP4rev1? > > I am thinking in particular with what was mentioned earlier about the > sequence > > RENAME a b > CREATE a > DELETE a > RENAME b a > > ...in which the UIDVALIDITY.UID criteria no longer holds water if the IMAP > server insists on keeping UIDVALIDITY when a folder is renamed. > > Can the IMAP server bump UIDVALIDITY when a folder is renamed, and still > be in 100% compliance with the RFC? Ideally each server must preserve UIDVALIDITY on RENAME, until an older incarnation of the same mailbox had a bigger UIDVALIDITY. (In reality most of the servers do the first part, but not the second). In the latter case the server has to assign a new UIDVALIDITY bigger than max (current_uidvalidity, previous_uidvalidity). Blindly updating UIDVALIDITY value on RENAME is not very friendly to disconnected mail clients. Alexey