Re:Ten Commandments of How to Write an IMAP Client (2006)
by billpg on Wednesday October 30, 2019 @11:08AM
(#21398546)
I'm an IMAP client and my user has clicked the delete-message button. Accordingly, I've sent a command to make the change and I'm waiting for the response from the server.
Oh no! Before the response came back, my connection to the server died. I don't know if my request arrived and was accepted.
Time passed and I've just now managed to reconnect. I need to know if the delete happened or not.
Re:Ten Commandments of How to Write an IMAP Client (2006)
by throw0101a on Thursday October 31, 2019 @09:15AM
(#21408327)
Check to see if the \Deleted flag was added to the message.
* https://tools.ietf.org/html/rfc8474
Though if your mail server loses the UID-to-message mapping index and has to rev the UIDVALIDITY, that's a more a problem with the implementation IMHO.