Accessing Internet Headers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john bailo

    #1

    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_FOUN D, i.e., the property doesn't
    exist.

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

    Other articles tell me that the Outlook.MailIte m 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 ?






  • Dmitry Streblechenko

    #2
    Re: Accessing Internet Headers

    PR_TRANSPORT_ME SSAGE_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)
    mapi,cdo,outlook,cdonts,cdoex,IAddrBook,IAttach,IDistList,IMAPIContainer,IMAPIFolder,IMAPIProp,IMAPISession,IMAPIStatus,IMAPI,Table,IMailUser,IMessage,IMsgStore,ThisOutlookSession,calendarview,cdoitem,cdolive,cdowf,hiddenmessages,ifolder,imapifolder,imapiprop,imessage,infostore,infostores,iprofadmin,logonsmtp,mailitem,mapifolder,mapiobject,meetingitem,messages,messagefilter,messagestore,messageview,objectrenderer,officevba,outlookspy,rawtable,recurrencetype,storeid,tableview,Active Messaging,Exchange Server Scripting,attachment object,calendarview,cdosession,collaboration data,entryid,extended,global address list,messaging api,outbox,inbox,outlooktoday,vb,vba,basic,visual basic,delphi,vc,script

    OutlookSpy - Outlook, CDO
    and MAPI Developer Tool


    "john bailo" <jbailo@vestcom .com> wrote in message
    news:8c904d42d4 b7e19b188e5cbb8 a36327f@news.te ranews.com...[color=blue]
    > 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[/color]
    is[color=blue]
    > information in the Internet Headers scrollbox.
    >
    > BUT -- when i run the Visual Basic code ( so far this is the only[/color]
    documented[color=blue]
    > 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_FOUN D, i.e., the property doesn't
    > exist.
    >
    > YET -- this code works on other mail in my Inbox.
    >
    > Other articles tell me that the Outlook.MailIte m does not contain access[/color]
    to[color=blue]
    > the Internet Headers so I am using the MAPI object in CDO -- but, as I[/color]
    said,[color=blue]
    > 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 ?
    >
    >
    >
    >
    >
    >[/color]


    Comment

    Working...