0 votes

We sometimes experience this error while processing an inbox:

Exception: EXPUNGE Document has been deleted

 at Limilabs.Client.IMAP.Imap.[1](ImapCommand [1], Boolean)
   at Limilabs.Client.IMAP.Imap.SendCommand(String command, Boolean throwException)
   at Limilabs.Client.IMAP.Imap.DeleteMessageByUID(List`1 uids)
   at Limilabs.Client.IMAP.Imap.MoveByUID(List`1 uids, FolderInfo destinationFolder)
   at Limilabs.Client.IMAP.Imap.MoveByUID(Int64 uid, FolderInfo destinationFolder)
   at Limilabs.Client.IMAP.Imap.MoveByUID(Int64 uid, String destinationFolder)
   at EmailPolling.EmailData.MoveToMailboxFolder(Imap imap, String uid, String sFolder, EmailPollingConfiguration oEPC)

Can you give us a hint what this message exactly means and how we can prevent/catch the error in our code?

by

1 Answer

0 votes

This is the server generated error, meaning it was raised by your server not Mail.dll IMAP client.

Most likely it means that the message you try to deleted was already deleted by another session.

by (289k points)
...