PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Accessing Internet Headers

Reply

Accessing Internet Headers

 
Thread Tools Rate Thread
Old 25-09-2003, 12:11 AM   #1
john bailo
Guest
 
Posts: n/a
Default Accessing Internet Headers


I am trying to write a c# program to access Outlook internet headers for
messages in a public folder.

When I look at these messages in Outlook, and select View/Options, there is
information in the Internet Headers scrollbox.

BUT -- when i run the Visual Basic code ( so far this is the only documented
method I have found, so I'm converting it to c# ) found here:

http://support.microsoft.com/?kbid=194870

It throws an error saying the MAPI_E_NOT_FOUND, i.e., the property doesn't
exist.

YET -- this code works on other mail in my Inbox.

Other articles tell me that the Outlook.MailItem does not contain access to
the Internet Headers so I am using the MAPI object in CDO -- but, as I said,
some emails do not allow the headers to display.


Since I can see the headers in Outlook, shouldn't the Outlook Object Model
allow me to access them ?






  Reply With Quote
Old 27-09-2003, 06:38 AM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Accessing Internet Headers

PR_TRANSPORT_MESSAGE_HEADERS is only available on the messages received from
the internet. Look at the same message using MdbView or OutlookSpy, do you
see this property?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"john bailo" <jbailo@vestcom.com> wrote in message
news:8c904d42d4b7e19b188e5cbb8a36327f@news.teranews.com...
> I am trying to write a c# program to access Outlook internet headers for
> messages in a public folder.
>
> When I look at these messages in Outlook, and select View/Options, there

is
> information in the Internet Headers scrollbox.
>
> BUT -- when i run the Visual Basic code ( so far this is the only

documented
> method I have found, so I'm converting it to c# ) found here:
>
> http://support.microsoft.com/?kbid=194870
>
> It throws an error saying the MAPI_E_NOT_FOUND, i.e., the property doesn't
> exist.
>
> YET -- this code works on other mail in my Inbox.
>
> Other articles tell me that the Outlook.MailItem does not contain access

to
> the Internet Headers so I am using the MAPI object in CDO -- but, as I

said,
> some emails do not allow the headers to display.
>
>
> Since I can see the headers in Outlook, shouldn't the Outlook Object Model
> allow me to access them ?
>
>
>
>
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off