Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: incremental message retrieval Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
springy
Newbie
Newbie
Avatar

Joined: 14 November 2008
Location: Germany
Online Status: Offline
Posts: 4
Posted: 17 November 2008 at 1:58pm | IP Logged Quote springy

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 View springy's Profile Search for other posts by springy
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 November 2008 at 5:07am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 
springy
Newbie
Newbie
Avatar

Joined: 14 November 2008
Location: Germany
Online Status: Offline
Posts: 4
Posted: 18 November 2008 at 8:52am | IP Logged Quote springy

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 View springy's Profile Search for other posts by springy
 

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