Home All Groups Group Topic Archive Search About
Author
3 May 2007 9:05 PM
Rodrigo
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

Author
4 May 2007 2:52 AM
Glen Scales [MVP]
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
Author
4 May 2007 1:18 PM
Rodrigo
Hi, Glen. You have been helping me a lot these days.
Can you please show me how to parse the header?
--
Rodrigo Acosta


Show quote
"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
>
>
>
Author
4 May 2007 2:00 PM
Henning Krause [MVP - Exchange]
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
>>
>>
>>

AddThis Social Bookmark Button