Andreas Aardal Hanssen writes:
If someone does a STATUS on a mailbox that the IMAP server has not seen before - what is expected output for UIDNEXT and UIDVALIDITY? Since the STATUS command can not change the mailbox in any way - I assume it's not allowed to index the messages either.Indexing the messages does not necessarily change the mailbox. That's dependent on mailbox format.
Is it far off to say that UIDNEXT == # of messages + 1, or UIDVALIDITY = 1 (obviously this is weird for servers that use time(NULL))?I think the former is safer. I'll bet there are many clients that don't handle changes in UIDVALIDITY well. My two cents.
UIDNEXT is the same as EXISTS. They have the same uses.What practical use does a client have for checking UIDNEXT status?
I've used it to help implement efficient MSN->UID mapping, and also in place of * once, when I needed to send a UID that was like * and guaranteed not to shrink.
--Arnt
