c# - Getting subject line of e-mail using webDAV and .NET -


  1. I should be well aware of someone else in this area for the re-title of the question. / P>

  2. I am trying to learn more about webDAV and .NET. I wrote an app that needs to pull all the e-mails from the Inbox on the server. I need to load this email in an object that has the following properties:

 - to - topic - body 

I got a lot Useful Posts But I'm not quite sure what I need to manipulate the XML file. Specifically the following code:

  XmlDocument document = new XmlDocument (); Document.Load (responseStream); // Set up namespace XmlNamespaceManager nsmgr = New XmlNamespaceManager (document.NameTable); Nsmgr.AddNamespace ("a", "DAV:"); Nsmgr.AddNamespace ("b", "vase: uuid: c2f41010-65b3-11d1-a29f-00aa00c14882 /"); Nsmgr.AddNamespace ("c", "xml:"); Nsmgr.AddNamespace ("d", "vase: schema: mailheader:"); Nsmgr.AddNamespace ("e", "vase: schema: httpmail:"); // Load each response (each mail item) in an object XmlNodeList responseNodes = document.GetElementsByTagName ("a: response"); Foreach (in response to the XmlNode response node) {// & lt; Propstat & gt; Node that contains valid HTTP responses include XmlNode uriNode = responseNode.SelectSingleNode ("child :: a: href", nsmgr); XmlNode propstatNode = responseNode.SelectSingleNode ("descendant: a: propstat [a: condition = 'http / 1.1 200 right']", NSMGR); If (propstatNode! = Null) {// Loadable properties of this response, and load into a data object, XmlNode fromNode = propstatNode.SelectSingleNode ("descendant :: d: from", nsmgr); XmlNode descNode = propstatNode.SelectSingleNode ("descendant: e: text description", NSMGR); // Create new data object model.mail mail = new model.mail (); If (uriNode! = Faucet) Mail Yuri = uriNode.InnerText; If (fromNode! = Null) Mail From = fromNode.InnerText; If (descNode! = Null) matches Body = descNode.InnerText; UnreadMail.Add (Mail); }}  

What is like a pile: schema: httpmail: subject or something where I can drag the subject line? I am very new to web DAV - and this is the way I have been asked to interact with the Exchange server so that any topic can modify the above code to add node and why - I am sure that I < / P>

So to clarify, my question is:

The subject line of the e-mail to include also how I can modify the above code snippet Pulled an Exchange server?

See, vase: schema: httpmail: subject should work < / P>


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -