|
Hi, i create Method the Remove old mail from the Imap folder. The folder that i want to clean are: Inbox, Sent Items, Skipped: The mail in Sent Items and skipped folder are moved by me using the Method StoreMessage. The method works for Inbox and Sent Items, but whe i try to add an UniqueId of folder Skipped i received the below Excpetion. Uniqueid not valid File : Rebex.Net.Imap Message : Specified message unique ID is not valid in the current folder. Parameter name: uniqueId StackTrace : at Rebex.Net.ImapMessageSet.Add(String uniqueId) The code is the below: try { for (int idx = 0; idx < 3; idx++) { m_Imap.SelectFolder(folder[idx]);
} catch (Exception ex) { m_log.Log (TraceLevel.Error, "CheckNotifToBeReadMail", ex); } |
|
This exception arises when you are trying to add two I recommend you to use this code:
|