Archived Forum Post

Index of archived forum posts


Remove email from IMAP server

Feb 07 '13 at 12:51

Hi guys,

Is there a way to remove emails from IMAP server using IMAP ActiveX control? I already look through the classes and methods, but can't find until now.


Best regards,

Richard Quintana


Question solved!

I found here that IMAP works with flags for messages. So to delete one of them, its just flag a message as "Deleted" and expunge it.

To do this, I use SetFlag method (or SetFlags for a MessageSet) from ChilkatImap class to flag the message. After that, in same class, Expunge method (or ExpungAndClose in some case)