Author |
|
rasmuffin Newbie
Joined: 17 March 2009
Online Status: Offline Posts: 5
|
Posted: 17 March 2009 at 4:34pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 March 2009 at 4:38pm | IP Logged
|
|
|
The easiest way for this is to use Imap.Abort method.
Regards,
Alex
|
Back to Top |
|
|
rasmuffin Newbie
Joined: 17 March 2009
Online Status: Offline Posts: 5
|
Posted: 18 March 2009 at 6:51am | IP Logged
|
|
|
Now why didn't I see that.... Thanks!!!
|
Back to Top |
|
|
rasmuffin Newbie
Joined: 17 March 2009
Online Status: Offline Posts: 5
|
Posted: 18 March 2009 at 8:11am | IP Logged
|
|
|
Is there any way to do it without disconnecting? I just want to cancel the current operation.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 March 2009 at 8:35am | IP Logged
|
|
|
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 |
|
|