Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: DeleteMessage Not doing as documented Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 22 February 2005 at 5:55am | IP Logged Quote Guests

DeleteMessage states in the documenttation you must be connected. However using pops demo 2 I have added the code below:

Private Sub CmdDelete_Click()
   oMailer.DeleteMessage lngCurMsg
End Sub

Which still deletes the current message being viewed. How can this be when disconnect has already been called in the cmdGetMail_Click event?

However I do get a "[Error: Already connected]" after clicking on cmdGetMail_Click again (after CmdDelete).

Is there some missing documentation in .DeleteMessage that connects if not currently connected?

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

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 February 2005 at 8:48am | IP Logged Quote Alex

DeleteMessage can connect to mail server if not yet connected.

However, DeleteMessage requires a parameter which depends on number of messages in the mailbox. Since number of messages in the mailbox can be determined only after the connection has been already established, DeleteMessage is never called during unconnected state in real-world applications.

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