A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retrieving custom headers from an Outlook MailItem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 12th 09, 09:04 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook MailItem

Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem. I've been
trying to, but it seems that the "MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,
Ads
  #2  
Old January 13th 09, 12:16 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieving custom headers from an Outlook MailItem

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem. I've been
trying to, but it seems that the "MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,



  #3  
Old January 13th 09, 04:11 AM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook MailItem

The property is being set in an external application which created the email.
When I open the email in Oultook and look at the header information in the
message options, the headers with their values are shown. This is two of them
along with how its formatted:

X-PW-PROJECTID: 9
X-PW-SOURCE: Task Manager


"Dmitry Streblechenko" wrote:

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem. I've been
trying to, but it seems that the "MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,




  #4  
Old January 13th 09, 06:03 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieving custom headers from an Outlook MailItem

So did you look at the message with MFCMAPI or OutlookSpy?
Did you try to retrieve the headers from the PR_TRANSPORT_MESSAGE_HEADERS
(0x007D001E) property (DASL name is
http://schemas.microsoft.com/mapi/proptag/0x007D001E )

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
The property is being set in an external application which created the
email.
When I open the email in Oultook and look at the header information in the
message options, the headers with their values are shown. This is two of
them
along with how its formatted:

X-PW-PROJECTID: 9
X-PW-SOURCE: Task Manager


"Dmitry Streblechenko" wrote:

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or
OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem. I've
been
trying to, but it seems that the
"MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,






  #5  
Old January 13th 09, 06:22 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook MailItem

I can get the entire contents of the header using:
oMailItem.PropertyAccessor.GetProperty(http://schemas.microsoft.com/mapi/proptag/0x007D001E),
which is fine. But I was looking for a way to pick out specific header
content. It seems that's not possible though, so I'll probably have to parse
it to pick out my custom headers.

Thanks


"Dmitry Streblechenko" wrote:

So did you look at the message with MFCMAPI or OutlookSpy?
Did you try to retrieve the headers from the PR_TRANSPORT_MESSAGE_HEADERS
(0x007D001E) property (DASL name is
http://schemas.microsoft.com/mapi/proptag/0x007D001E )

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
The property is being set in an external application which created the
email.
When I open the email in Oultook and look at the header information in the
message options, the headers with their values are shown. This is two of
them
along with how its formatted:

X-PW-PROJECTID: 9
X-PW-SOURCE: Task Manager


"Dmitry Streblechenko" wrote:

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or
OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem. I've
been
trying to, but it seems that the
"MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,






  #6  
Old January 13th 09, 08:24 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieving custom headers from an Outlook MailItem

Unless that particular header was already parsed into a separate property by
Outlook (don't count on that), parsing the whole header is the only way to
do that

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
I can get the entire contents of the header using:
oMailItem.PropertyAccessor.GetProperty(http://schemas.microsoft.com/mapi/proptag/0x007D001E),
which is fine. But I was looking for a way to pick out specific header
content. It seems that's not possible though, so I'll probably have to
parse
it to pick out my custom headers.

Thanks


"Dmitry Streblechenko" wrote:

So did you look at the message with MFCMAPI or OutlookSpy?
Did you try to retrieve the headers from the PR_TRANSPORT_MESSAGE_HEADERS
(0x007D001E) property (DASL name is
http://schemas.microsoft.com/mapi/proptag/0x007D001E )

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
The property is being set in an external application which created the
email.
When I open the email in Oultook and look at the header information in
the
message options, the headers with their values are shown. This is two
of
them
along with how its formatted:

X-PW-PROJECTID: 9
X-PW-SOURCE: Task Manager


"Dmitry Streblechenko" wrote:

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or
OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem.
I've
been
trying to, but it seems that the
"MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,








  #7  
Old January 13th 09, 08:31 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook MailItem

Thanks

"Dmitry Streblechenko" wrote:

Unless that particular header was already parsed into a separate property by
Outlook (don't count on that), parsing the whole header is the only way to
do that

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
I can get the entire contents of the header using:
oMailItem.PropertyAccessor.GetProperty(http://schemas.microsoft.com/mapi/proptag/0x007D001E),
which is fine. But I was looking for a way to pick out specific header
content. It seems that's not possible though, so I'll probably have to
parse
it to pick out my custom headers.

Thanks


"Dmitry Streblechenko" wrote:

So did you look at the message with MFCMAPI or OutlookSpy?
Did you try to retrieve the headers from the PR_TRANSPORT_MESSAGE_HEADERS
(0x007D001E) property (DASL name is
http://schemas.microsoft.com/mapi/proptag/0x007D001E )

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
The property is being set in an external application which created the
email.
When I open the email in Oultook and look at the header information in
the
message options, the headers with their values are shown. This is two
of
them
along with how its formatted:

X-PW-PROJECTID: 9
X-PW-SOURCE: Task Manager


"Dmitry Streblechenko" wrote:

Do you specify the property name in teh DASL format?
Are you sure that property exists? Can you see it in MFCMAPI or
OutlookSpy?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Andrew" wrote in message
...
Hello All,

Development Environment: Visual Studio 2008
Language: VB.Net
Outlook 2003 and 2008


Is it possible retrieve custom headers from an Outlook MailItem.
I've
been
trying to, but it seems that the
"MailItem.PropertyAccessor.GetProperty"
method can only see Outlook's "core" headers.

Thanks,









 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading (Displaying) MailItem with Custom Form Paulem0071 Add-ins for Outlook 3 December 2nd 08 02:25 PM
Trying to open the new mailItem inspector form within a custom Win Naji Add-ins for Outlook 5 June 17th 08 02:30 PM
Spell check on custom MailItem form when replying István Becze Add-ins for Outlook 1 June 27th 07 02:14 PM
Custom Internet X-Headers Nishant Mehta Add-ins for Outlook 0 November 13th 06 09:18 AM
How to implement custom Outlook message headers? mistral Add-ins for Outlook 0 September 21st 06 11:04 AM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.