Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Cancel Async Methods Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rasmuffin
Newbie
Newbie


Joined: 17 March 2009
Online Status: Offline
Posts: 5
Posted: 17 March 2009 at 4:34pm | IP Logged Quote rasmuffin

I am trying out the IMAP component and like what I see so far. However, I am using the BeginDownloadEnvelopes method and was looking for a way to cancel this once the method has begun but not finished yet. For example, I am downloading the envelopes for a particular folder that has over 3000 envelopes in it. This can take a while especially if I download any sort of preview of the message... so I want to allow the user to be able to cancel this if they want to look at a different folder instead. Is this possible?
Back to Top View rasmuffin's Profile Search for other posts by rasmuffin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 March 2009 at 4:38pm | IP Logged Quote Alex

The easiest way for this is to use Imap.Abort method.

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


Joined: 17 March 2009
Online Status: Offline
Posts: 5
Posted: 18 March 2009 at 6:51am | IP Logged Quote rasmuffin

Now why didn't I see that.... Thanks!!!
Back to Top View rasmuffin's Profile Search for other posts by rasmuffin
 
rasmuffin
Newbie
Newbie


Joined: 17 March 2009
Online Status: Offline
Posts: 5
Posted: 18 March 2009 at 8:11am | IP Logged Quote rasmuffin

Is there any way to do it without disconnecting? I just want to cancel the current operation.
Back to Top View rasmuffin's Profile Search for other posts by rasmuffin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 March 2009 at 8:35am | IP Logged Quote Alex

You can't do this without disconnecting. After a command has been sent to the server, the server starts returning data and won't stop until all the data is sent. The only way is stop is to close the connection on the client side. This is how TCP/IP works.

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