Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Lots of Emails Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tiainena
Newbie
Newbie
Avatar

Joined: 08 November 2007
Location: Australia
Online Status: Offline
Posts: 4
Posted: 08 November 2007 at 4:47am | IP Logged Quote tiainena

Good Evening.. I have approximately 100000 emails which need to be downloaded on a periodical basis. I've created a simple vb.net app which will download and save emails via pop3, but it keeps timing out. Is there a better way to do what i'm doing, or perhaps should i be looking at IMAP rather? I'm using Exchange 2003. There is a line in my code as follows

For Each MSG As MailBee.Mime.MailMessage In Pop3Message

This seems to be where the slowness begins.

Any ideas would be much appreciated.

Thanks.
Back to Top View tiainena's Profile Search for other posts by tiainena
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 08 November 2007 at 4:57am | IP Logged Quote Andrew

Is it ASP.NET or WinForms application?

Which timeout do you get? Could you please enable logging POP3 session into a file, reproduce the issue and provide us with a part of the log file for examination?

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tiainena
Newbie
Newbie
Avatar

Joined: 08 November 2007
Location: Australia
Online Status: Offline
Posts: 4
Posted: 09 November 2007 at 5:34pm | IP Logged Quote tiainena

This is the last of the errors.

[11:32:57.02] [RECV] +OK\r\n [Total 157791 bytes received.]
[11:32:57.04] [RECV] +OK\r\n [Total 2391 bytes received.]
[11:32:57.05] [RECV] +OK\r\n [Total 4460 bytes received.]
[11:32:57.08] [RECV] +OK\r\n [Total 7068 bytes received.]
[11:32:57.11] [RECV] +OK\r\n [Total 4242 bytes received.]
[11:32:57.13] [INFO] Error: The particular item of the response data cannot be parsed. The response string: =20.
[11:32:57.13] [INFO] Will disconnect from host "SERVER".

Thanks.
Back to Top View tiainena's Profile Search for other posts by tiainena
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 10 November 2007 at 4:24am | IP Logged Quote Andrew

This means your mail server returns a weird response which cannot be parsed by MailBee.NET Objects. Please try to reproduce the issue with the latest version of MailBee.NET.dll. Please let us know the outcome.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tiainena
Newbie
Newbie
Avatar

Joined: 08 November 2007
Location: Australia
Online Status: Offline
Posts: 4
Posted: 10 November 2007 at 6:33am | IP Logged Quote tiainena

Hi Andrew,

I'm download the new version 3, and still have the same problem. I will download the file above and try as well.

I've tried this with IMAP as well with somewhat similar results. I get the following error in the logging

[23:15:38.08] [RECV] MBN00000004 NO The requested message could not be converted to an RFC-822 compatible format.\r\n [Total 94 bytes received.]
[23:15:38.11] [INFO] Error: The server has responded with negative reply. The server responded: MBN00000004 NO The requested message could not be converted to an RFC-822 compatible format..

I also recieve memory since i assume i'm not release the memory each time a message is downloaded. Is there any sample code available for pop3 or imap for downloading at least 100,000 emails.

Thanks.
Back to Top View tiainena's Profile Search for other posts by tiainena
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 11 November 2007 at 11:15pm | IP Logged Quote Andrew

To let us reproduce the issue with the response in RFC-822 non-compatible format, could you please provide us with a test account on your mail server the issue can be reproduced on? Please use Request Support Form for this purpose.

Quote:
I also recieve memory since i assume i'm not release the memory each time a message is downloaded. Is there any sample code available for pop3 or imap for downloading at least 100,000 emails.


Actually, receiving 100,000 emails procedure is the same as receiving 10 emails. However, you may receive messages by portions, for instance, 1000 messages per connect. In case of POP3, you should store UIDs of already downloaded messages in a database and download only those messages which were not downloaded before (WebMail Pro behaves so). In case of IMAP, you may check Seen flag and download unseen (i.e. not downloaded before) messages.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tiainena
Newbie
Newbie
Avatar

Joined: 08 November 2007
Location: Australia
Online Status: Offline
Posts: 4
Posted: 13 November 2007 at 3:02am | IP Logged Quote tiainena

Thanks for the information Andrew,

I have moved the program to using IMAP and downloading them in blocks of 1000 which seems to work quite well. At the moment, i'm trying to run the process over about 150000 messages, and keep running out of memory. Even though i'm batching it, it seems to just keep building up and up - perhaps it could be something i've done wrong in the code.

Thanks
Back to Top View tiainena's Profile Search for other posts by tiainena
 

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