The problems continue. My client in Japan using a DoCoMo phone, HTC Z, I think that same as an HTC TyTn, is now getting errors as well. He was running OK for awhile. This is the same code that I sent you in another post. This seems to be trying to add a Recipient to an email but I do not try to do that in my code. What is going on? The stack trace is:
Error: Error processing Email and SMS messages
Reason: Invalid address.
Response: 場所 InTheHand.WindowsMobile.PocketOutlook.Recipient.CleanAddress()
場所 InTheHand.WindowsMobile.PocketOutlook.Recipient..ctor()
場所 InTheHand.WindowsMobile.PocketOutlook.Recipient..ctor()
場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage.AddRecipients()
場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage.ParseMime()
場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage..ctor()
at EmailMessageFolderEnumerator.MoveNext()
場所 Observer_for_WM_PocketPC_Phone.Listener.RebuildMessageItemIDArray()
場所 Observer_for_WM_PocketPC_Phone.Listener.TimerPutObservationLoop_Tick()
場所 System.Threading.Timer.ring()
code:
foreach (InTheHand.WindowsMobile.PocketOutlook.EmailAccount EmailAccount in Session.EmailAccounts)
{
foreach (EmailMessageFolder MyEmailFolder in EmailAccount.Folders)
{
string MyAccountName = EmailAccount.Name;
string EmailFolderName = MyEmailFolder.Name;
if (MyEmailFolder.FolderType.ToString() == "Inbox" ||
MyEmailFolder.FolderType.ToString() == "DeletedItems" ||
MyEmailFolder.FolderType.ToString() == "SentItems")
{
foreach (InTheHand.WindowsMobile.PocketOutlook.EmailMessage EmailMsg in MyEmailFolder)
{
MessageItemIDs.Add(EmailMsg.ItemId.ToString());
}
}
}
}
foreach (InTheHand.WindowsMobile.PocketOutlook.SmsMessage SMSMsg in Session.SmsAccount.SentItems)
{
MessageItemIDs.Add(SMSMsg.ItemId.ToString());
}