Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Get messages
moakley

From: Columbia, SC USA
Posts: 13
Member Since: 10/18/06
posted July 20, 2010 2:35 PM

We have a scheduler driven app that periodically wakes up and gets all messages from an email account.

imap.CurrentMailbox.Get( imap.CurrentMailbox.Messages[0], imap.CurrentMailbox.Messages[imap.CurrentMailbox.Messages.Count - 1], ImapMessageSections.Body);

Periodically the contents of the last message received is empty (From, To, Subject, Body) when we process that message. The difference in timestamps (of the message and the get messages) is between 1-5 seconds.

This is an exchange email server. Is it possible that the email server is counting the messages without having fully received the last message? If it is possible is there an exchange server setting to prevent messages from being counted when not fully received? Or is the only choice I have to get messages one at a time? But even with this change it would still seem possible for the first message to be counted yet empty.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 20, 2010 3:27 PM

Hello,

Unfortunately, we are not able to provide support for third-party software. Please contact Microsoft regarding questions about their email server.

It seems that your hypothesis could be possible. For confirmation, you can either examine or send in (to support@dart.com) a trace log; looking for differences between what our control sends for a successfully retrieved message and the unsuccessfully retrieved message. If what our control sends doesn't look malformed, and the data being received is blank, the issue would appear to be with the exchange server.
For help with setting up the trace, you may examine the help documentation (Imap Trace Event) or the Imap Client for a demonstration of its use.
moakley

From: Columbia, SC USA
Posts: 13
Member Since: 10/18/06
posted July 20, 2010 3:49 PM

It's unfortunate that this has only been observed at a single customer site and infrequently. Just 3 time during the last month and they have probably processed a couple thousand messages. I believe I could set up a test where the problem would eventually occur.
Thanks, Mike...
moakley

From: Columbia, SC USA
Posts: 13
Member Since: 10/18/06
posted January 12, 2011 3:27 PM

This has been resolved. What it was likely due to was poor use of your API and perhaps a memory management issue. What I do now is to get a current message count and then read each message 1 at a time until I have either successfully processed each message or I failed during the processing of a message.
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX