|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Hello experts:
I need to read mails from a mailbox using webDav and I'm trying to get the Internet Header info. Basically, I want to be able to access the Internet Headers from Undeliverable mails that are in the mailbox because I have information on the header that I need to access. Can anyone give me a hint or an example of how to do this? I will really appreciate any help that you can give me. Thanks!!! -- Rodrigo Acosta The undeliverable mail will be attachment to the bounce message with a
content type of message/rfc822. With WebDAV its a little tricky you need to either enumerate and download the attachment and then parse the headers back out of the message. Or you can just grab the whole message by getting its stream http://msdn2.microsoft.com/en-us/library/aa563016.aspx and then parse the information you want back out of the stream. Cheers Glen Show quote "Rodrigo" <Rodr***@discussions.microsoft.com> wrote in message news:9B91546F-07C2-44FF-B5B1-19BED8443859@microsoft.com... > Hello experts: > I need to read mails from a mailbox using webDav and I'm trying to get the > Internet Header info. Basically, I want to be able to access the Internet > Headers from Undeliverable mails that are in the mailbox because I have > information on the header that I need to access. > > Can anyone give me a hint or an example of how to do this? > I will really appreciate any help that you can give me. > > Thanks!!! > -- > Rodrigo Acosta Hi, Glen. You have been helping me a lot these days.
Can you please show me how to parse the header? -- Show quoteRodrigo Acosta "Glen Scales [MVP]" wrote: > The undeliverable mail will be attachment to the bounce message with a > content type of message/rfc822. With WebDAV its a little tricky you need to > either enumerate and download the attachment and then parse the headers back > out of the message. Or you can just grab the whole message by getting its > stream http://msdn2.microsoft.com/en-us/library/aa563016.aspx and then > parse the information you want back out of the stream. > > Cheers > Glen > > > > "Rodrigo" <Rodr***@discussions.microsoft.com> wrote in message > news:9B91546F-07C2-44FF-B5B1-19BED8443859@microsoft.com... > > Hello experts: > > I need to read mails from a mailbox using webDav and I'm trying to get the > > Internet Header info. Basically, I want to be able to access the Internet > > Headers from Undeliverable mails that are in the mailbox because I have > > information on the header that I need to access. > > > > Can anyone give me a hint or an example of how to do this? > > I will really appreciate any help that you can give me. > > > > Thanks!!! > > -- > > Rodrigo Acosta > > > Hello,
you can find more on this topic in the corresponding RFC: General format of E-Mail messages: RFC 2822 (http://www.ietf.org/rfc/rfc2822.txt) Format of delivery status notifications: RFC 1894 (http://www.ietf.org/rfc/rfc1894.txt) Best regards, Henning Krause Show quote "Rodrigo" <Rodr***@discussions.microsoft.com> wrote in message news:3FA8E037-C704-4834-B8D6-05DD6D71D0A3@microsoft.com... > Hi, Glen. You have been helping me a lot these days. > Can you please show me how to parse the header? > -- > Rodrigo Acosta > > > "Glen Scales [MVP]" wrote: > >> The undeliverable mail will be attachment to the bounce message with a >> content type of message/rfc822. With WebDAV its a little tricky you need >> to >> either enumerate and download the attachment and then parse the headers >> back >> out of the message. Or you can just grab the whole message by getting its >> stream http://msdn2.microsoft.com/en-us/library/aa563016.aspx and then >> parse the information you want back out of the stream. >> >> Cheers >> Glen >> >> >> >> "Rodrigo" <Rodr***@discussions.microsoft.com> wrote in message >> news:9B91546F-07C2-44FF-B5B1-19BED8443859@microsoft.com... >> > Hello experts: >> > I need to read mails from a mailbox using webDav and I'm trying to get >> > the >> > Internet Header info. Basically, I want to be able to access the >> > Internet >> > Headers from Undeliverable mails that are in the mailbox because I have >> > information on the header that I need to access. >> > >> > Can anyone give me a hint or an example of how to do this? >> > I will really appreciate any help that you can give me. >> > >> > Thanks!!! >> > -- >> > Rodrigo Acosta >> >> >> |
|||||||||||||||||||||||