Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: IMAP delete message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RBuckley
Newbie
Newbie


Joined: 04 March 2014
Location: United States
Online Status: Offline
Posts: 4
Posted: 04 March 2014 at 3:56pm | IP Logged Quote RBuckley

I am in a MailMessageCollection For-Next loop. How can I delete the message after I process it?
Back to Top View RBuckley's Profile Search for other posts by RBuckley
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 March 2014 at 2:25am | IP Logged Quote Igor

To delete message from IMAP, you need to know its UID. Assuming you have downloaded mail message or collection of those from IMAP, MailMessage.UidOnServer property will hold the value you require for calling Imap.DeleteMessages method.

--
Regards,
Igor, AfterLogic Support

PS. The thread is moved to MailBee.NET Objects section.
Back to Top View Igor's Profile Search for other posts by Igor
 
RBuckley
Newbie
Newbie


Joined: 04 March 2014
Location: United States
Online Status: Offline
Posts: 4
Posted: 05 March 2014 at 3:23am | IP Logged Quote RBuckley

Thank you!
Back to Top View RBuckley's Profile Search for other posts by RBuckley
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide