Dart Home | PowerTCP Mail for .NET | Custom Development | Reply | PowerTCP Mail for .NET Topics | Forums |
Author | Forum: PowerTCP Mail for .NET Topic: IMAP, Messages and Message.Uid |
cainmt From: USA Posts: 14 Member Since: 05/04/16 |
posted December 14, 2016 6:09 PM Hi, we wrote some code to process unread messages using IMAP (seen = false) with 4.3.0.2 PowerTCP Mail for .NET. The code is working great a multiple sites. Our code is checking for the existence of and only processing the emails when there is a Message.Uid present for the email. Recently, we found that the Message.Uid is not present (blank) on a few of the emails received from one of the customer's Exchange mailboxes. We found this by putting some debug code in place to catch the issue. Since our code looks for for the Uid and requires it (we use it as a unique identifier later in the code), we fail to process these few messages that come in once in awhile. What would be the reason that an email would be missing the Message.Uid? Any suggestions or ideas on how to fix it? Is there another or better unique id we can use for each email message? Thanks! |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted December 15, 2016 4:24 PM Hello, What would be the reason that an email would be missing the Message.Uid? - Either the server is not supplying the UID, or there was an issue with parsing the UID out from the server's response. Any suggestions or ideas on how to fix it? - Not until we have more information. Is there another or better unique id we can use for each email message? - ImapMessage.Id may be used similarly. So we can determine whether the server is not supplying a UID or if there is an issue with our parsing, can you either: Send a log into support@dart.com that demonstrates the issue, and information (To, From, CC, subject, date, etc) on the emails that have this issue (so we can identify them within the log)? You can generate the log by wiring up Imap.Connection.Log, and using the code demonstrated here (however it might be easier to log it to file instead of a textbox): http://www.dart.com/help/ptmlnet/webframe.html#Dart.Mail~Dart.Mail.TcpBase~Log_EV.html Or provide us access details and credentials to the server (and any information (To, From, CC, subject, date, etc) on the emails that have this issue)? |
cainmt From: USA Posts: 14 Member Since: 05/04/16 |
posted December 15, 2016 4:39 PM Thanks, we will try to use the first method to get some info for you. I don't think the customer will allow direct access to their server. |
cainmt From: USA Posts: 14 Member Since: 05/04/16 |
posted January 13, 2017 5:30 PM I have sent an email to support with the logs you requested. Thanks again for your help. |
Reply | PowerTCP Mail for .NET Topics | Forums |
This site is powered by
![]() |