Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Imap Delete Message in 2013
hammer33333

From: USA
Posts: 1
Member Since: 12/30/14
posted December 30, 2014 10:15 PM

I have looked through your support forums which I believe are outdated because the example whereby imapMsg.Deleted = true does not work. Is there a simple way to Delete an Imap message?
gkohli

From: Canada
Posts: 13
Member Since: 10/08/15
posted October 14, 2015 4:05 PM

Please let us know how to delete the messages from the mailbox, i used copyto method to deleted items mailbox didnt worked for me
gkohli

From: Canada
Posts: 13
Member Since: 10/08/15
posted October 14, 2015 4:24 PM

I found it ,
  SessionManager.Imap.SelectedMailbox[msgId].CopyTo(deletedBox); //Copy to "Deleted Items"

SessionManager.Imap.SelectedMailbox[msgId].Update(true, ImapFlags.Deleted);

 Mailbox.Purge(); //ur currentmailbox
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX