Re: [Imap-protocol] Is server re-use of UID OK?
Dave Warren <[email protected]> Mon, 9 Oct 2017 15:32:32 -0600
| Newsgroups | gmane.mail.imap.general |
|---|---|
| Message-ID | <[email protected]> |
On 2017-10-09 14:41, Gene Smith wrote: > Yes, in the mbox where the message was deleted, its UID is still present > but with the \deleted flag set. The same message but with a different > UID is in Trash. When I try to copy it back to the original mbox from > Trash, the server indicates that it is copying it to the original UID > (not >= UIDNEXT). The main problem I see is that this copy doesn't clear > the \deleted flag for the UID in the original folder so the message > remain invisible in the client. I think it might reduce confusion if we stop saying "Message was deleted". "Deleted" doesn't have a clear definition in this context because it isn't really a thing in IMAP (although it is how IMAP clients present multiple different behaviours to users). At the protocol level, you can set the \Deleted flag or you can EXPUNGE. Since a \Deleted flag can be trivially removed, there is no "reuse" of a UID, the UID was still being reused and the COPY was just returning an accurate (if unusual) result. Expunging and then reusing the UID (assuming an unchanged UIDVALIDITY) would be a very significant problem with regards to clients maintaining the validity of their caches, but simply changing a flag is perfectly valid. _______________________________________________ Imap-protocol mailing list [email protected] http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol