Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Delete a message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guest
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 25 October 2005 at 5:56pm | IP Logged Quote Guest

Does Mailbee Pop3 support deleting individual e-mail as specified?

Back to Top View Guest's Profile Search for other posts by Guest
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 October 2005 at 8:49am | IP Logged Quote Alex

Yes, you can use POP3.DeleteMessage method to delete individual messages:
Code:

' Assuming we're already connected to the server,
' delete the first message from the inbox
POP3.DeleteMessage 1
POP3.Disconnect


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Chris
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 23 March 2006 at 3:58pm | IP Logged Quote Chris

I have a VBScript and I'm calling the deletemessage method.

I'm getting +OK back from my Exchange 2000 server.

However, the message isn't being deleted.

Any ideas?

spit just outputs the string.

Code:

for i = 1 to opop.MessageCount
     set msg = opop.RetrieveSingleMessage(i)
     spit "from: " & msg.FromAddr
        spit " : " & msg.Subject

     bretval = opop.DeleteMessage(i)
     spit opop.ServerResponse
     if bretval-0 then
     spit "Msg " & i & " deleted."
     else
     spit "error!"
     end if

next
Back to Top View Chris's Profile Search for other posts by Chris
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 March 2006 at 7:48am | IP Logged Quote Alex

When calling DeleteMessage method, the selected messages are just marked as deleted, but are not indeed removed from the mail server.

The developer should also call POP3.Disconnect method to submit the deletion of the marked messages.

NOTE: if the POP3.Disconnect method is not called and the connection is broken, all messages marked for deletion will not be deleted.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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