Author |
|
springy Newbie
Joined: 14 November 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 17 November 2008 at 1:58pm | IP Logged
|
|
|
Hello,
is there a way of incremental message retrieval? I noticed that while waiting for a "DownloadMessages" result the LogEvents are firing for every message while I have to wait minutes until everything has arrived -- did a oversee a useful method/property/parameter?
/\/\arkus.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 November 2008 at 5:07am | IP Logged
|
|
|
We're not sure that clearly understood your request. But if you need to download messages asynchronously, you can use Imap.BeginDownloadEnvelopes method. To learn downloading progress, you may handle Imap.DataReceived or Imap.EnvelopeDownloaded or Imap.EnvelopeDataChunkReceived events.
Also, "IMAP Demo 2" shipped in MailBee.NET Objects bundle (Start / Programs / MailBee.NET Objects / Sample Applications / WinForms) shows how to implement asynchronous downloading messages.
Best regards,
Andrew
|
Back to Top |
|
|
springy Newbie
Joined: 14 November 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 18 November 2008 at 8:52am | IP Logged
|
|
|
Thanx, with the use of Microsoft TPL's BlockingCollection<T> I managed to create an iterator method which "fetches" the messages in the background, using BeginDownloadEnvelopes and the EnvelopeDownloaded event.
/\/\arkus.
|
Back to Top |
|
|