Hi all,
I think the answer to this is reasonably obious, but there's a slight
ambiguity in RFC3501 that makes me want to check for sure.
Here's the scenario:
* User moves a message from inbox to another mailbox.
* User moves the same message from the other mailbox back to the
inbox.
The question is, does IMAP expect that the message will have the
same UID after being moved back into the inbox?
To me, the answer to this question looks like it MUST be "no": there
are too many scenarios where it becomes difficult or impossible, most
notably if the UIDVALIDITY on inbox changes between the moves.
There's also the fact that you'd have to have some kind of means of
keeping a list of all the UIDs the message ever had in all the
mailboxes it resided in at any time. In my view, when the message
moves back to the inbox, it is effectively a different message.
The "ambiguity" I'm referring to in RFC3501 is in section 2.3.1.1, note
4:
-------------------------- Cut here ----------------------------
4) The combination of mailbox name, UIDVALIDITY, and UID
must refer to a single immutable message on that server
forever.
-------------------------- Cut here ----------------------------
It is possible to read this as meaning that once any specific message
has been assigned a UID in a folder, it should always have that UID
any time it is replaced in that folder, until such time as UIDVALIDITY
changes.
I'd appreciate guidance on this.
Cheers!
-- David --
------------------ David Harris -+- Pegasus Mail ----------------------
Box 5451, Dunedin, New Zealand | e-mail: David.Harris@pmail.gen.nz
Phone: +64 3 453-6880 | Fax: +64 3 453-6612
Real newspaper headlines from US Papers:
"Milk drinkers are turning to powder".