Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Problem in Parsing Message MimePart Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Renzo
Newbie
Newbie
Avatar

Joined: 09 June 2009
Location: Italy
Online Status: Offline
Posts: 1
Posted: 09 June 2009 at 6:23am | IP Logged Quote Renzo

- I read a mail message;
- This message is a bounce message and contains 13 MimePart;
- I would like to read value (<PartValue> tag in xml serialize) of a specific mimepart (ContentType == "message/delivery-status")
but I don't find the correct property that contains what I want.

This is a part of my code:
foreach (MimePart mimePart in mailMsg.MimePartTree.GetAllParts())
{
if (mimePart.ContentType.Equals("message/rfc822") || mimePart.ContentType.Equals("message/delivery-status"))  ;           ;           ;           ;         {
// Here I want The partvalue of currente mimepart
}
}

Thanks in advance
Back to Top View Renzo's Profile Search for other posts by Renzo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 09 June 2009 at 6:59am | IP Logged Quote Alex

If you print values for every mimePart.ContentType in this foreach, what do you get?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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