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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

update xheader of received message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 17th 07, 03:07 PM posted to microsoft.public.outlook.program_vba
sd[_2_]
external usenet poster
 
Posts: 69
Default update xheader of received message

hi
I've added xheader(Matter) to message using Redemption.Now On receving
end I extract
my xheader using redemption(by means of PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()

Thanks

  #2  
Old October 17th 07, 09:20 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default update xheader of received message

If you read the value from PR_TRANSPORT_MESSAGE_HEADERS, then I assume you
would want to save into the same property.
What do you mean by "not able to update the xheader with user modified
value"?

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

"sd" wrote in message
oups.com...
hi
I've added xheader(Matter) to message using Redemption.Now On receving
end I extract
my xheader using redemption(by means of PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()

Thanks



  #3  
Old October 18th 07, 06:25 AM posted to microsoft.public.outlook.program_vba
sd[_2_]
external usenet poster
 
Posts: 69
Default update xheader of received message

I've custom xheader (say x-Matter) added to outgoing message.On
receiving end I extract the xheader ,display on control(cmbMatter)
placed on form region of read message.User can modify the value of
that control.When the user presses save bttn on tha same form
region ,I need to update the same Xheader(x-Matter) with updated
value of the control(cmbMatter) entered by user.So I need to modify
PR_TRANSPORT_MESSAGE_HEADERS & x-Matter both.
How to do this ?
Thanks!


On Oct 18, 1:20 am, "Dmitry Streblechenko" wrote:
If you read the value from PR_TRANSPORT_MESSAGE_HEADERS, then I assume you
would want to save into the same property.
What do you mean by "not able to update the xheader with user modified
value"?

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

"sd" wrote in message

oups.com...



hi
I've added xheader(Matter) to message using Redemption.Now On receving
end I extract
my xheader using redemption(by means of PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()


Thanks- Hide quoted text -


- Show quoted text -



  #4  
Old October 18th 07, 07:47 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default update xheader of received message

Merge the new value of header into the old value of
PR_TRANSPORT_MESSAGE_HEADERS , then set the property using
SafeMailItem.Fields(PR_TRANSPORT_MESSAGE_HEADERS ) = newValue.

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

"sd" wrote in message
ps.com...
I've custom xheader (say x-Matter) added to outgoing message.On
receiving end I extract the xheader ,display on control(cmbMatter)
placed on form region of read message.User can modify the value of
that control.When the user presses save bttn on tha same form
region ,I need to update the same Xheader(x-Matter) with updated
value of the control(cmbMatter) entered by user.So I need to modify
PR_TRANSPORT_MESSAGE_HEADERS & x-Matter both.
How to do this ?
Thanks!


On Oct 18, 1:20 am, "Dmitry Streblechenko" wrote:
If you read the value from PR_TRANSPORT_MESSAGE_HEADERS, then I assume
you
would want to save into the same property.
What do you mean by "not able to update the xheader with user modified
value"?

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

"sd" wrote in message

oups.com...



hi
I've added xheader(Matter) to message using Redemption.Now On receving
end I extract
my xheader using redemption(by means of PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()


Thanks- Hide quoted text -


- Show quoted text -





  #5  
Old October 18th 07, 03:28 PM posted to microsoft.public.outlook.program_vba
sd[_2_]
external usenet poster
 
Posts: 69
Default update xheader of received message

Thanks Dmitry!
It worked.I modified PR_TRANSPORT_MESSAGE_HEADERS.
but can I modify Specific Xheader (Here x-matter) as after modifying
PR_TRANSPORT_MESSAGE_HEADERS when I right click message & select
Message options ,it shows me old value not modified value.But when I
dump
PR_TRANSPORT_MESSAGE_HEADERS ,it shows me modified value.Why so?

On Oct 18, 11:47 am, "Dmitry Streblechenko"
wrote:
Merge the new value of header into the old value of
PR_TRANSPORT_MESSAGE_HEADERS , then set the property using
SafeMailItem.Fields(PR_TRANSPORT_MESSAGE_HEADERS ) = newValue.

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

"sd" wrote in message

ps.com...



I've custom xheader (say x-Matter) added to outgoing message.On
receiving end I extract the xheader ,display on control(cmbMatter)
placed on form region of read message.User can modify the value of
that control.When the user presses save bttn on tha same form
region ,I need to update the same Xheader(x-Matter) with updated
value of the control(cmbMatter) entered by user.So I need to modify
PR_TRANSPORT_MESSAGE_HEADERS & x-Matter both.
How to do this ?
Thanks!


On Oct 18, 1:20 am, "Dmitry Streblechenko" wrote:
If you read the value from PR_TRANSPORT_MESSAGE_HEADERS, then I assume
you
would want to save into the same property.
What do you mean by "not able to update the xheader with user modified
value"?


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


"sd" wrote in message


groups.com...


hi
I've added xheader(Matter) to message using Redemption.Now On receving
end I extract
my xheader using redemption(by means of PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()


Thanks- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #6  
Old October 18th 07, 05:58 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default update xheader of received message

How/if do you save the message?

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

"sd" wrote in message
oups.com...
Thanks Dmitry!
It worked.I modified PR_TRANSPORT_MESSAGE_HEADERS.
but can I modify Specific Xheader (Here x-matter) as after modifying
PR_TRANSPORT_MESSAGE_HEADERS when I right click message & select
Message options ,it shows me old value not modified value.But when I
dump
PR_TRANSPORT_MESSAGE_HEADERS ,it shows me modified value.Why so?

On Oct 18, 11:47 am, "Dmitry Streblechenko"
wrote:
Merge the new value of header into the old value of
PR_TRANSPORT_MESSAGE_HEADERS , then set the property using
SafeMailItem.Fields(PR_TRANSPORT_MESSAGE_HEADERS ) = newValue.

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

"sd" wrote in message

ps.com...



I've custom xheader (say x-Matter) added to outgoing message.On
receiving end I extract the xheader ,display on control(cmbMatter)
placed on form region of read message.User can modify the value of
that control.When the user presses save bttn on tha same form
region ,I need to update the same Xheader(x-Matter) with updated
value of the control(cmbMatter) entered by user.So I need to modify
PR_TRANSPORT_MESSAGE_HEADERS & x-Matter both.
How to do this ?
Thanks!


On Oct 18, 1:20 am, "Dmitry Streblechenko" wrote:
If you read the value from PR_TRANSPORT_MESSAGE_HEADERS, then I assume
you
would want to save into the same property.
What do you mean by "not able to update the xheader with user modified
value"?


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


"sd" wrote in message


groups.com...


hi
I've added xheader(Matter) to message using Redemption.Now On
receving
end I extract
my xheader using redemption(by means of
PR_TRANSPORT_MESSAGE_HEADERS)
& display the
xheader value in combobox control placed on form region adjoined to
read message.The user
can modify the text of combobox & when save command bttn on the same
form region
is pressed the modified value needs to be reflected in the xheader
of
that message.
I was able to add xheader to outgoing message & at receiving end
extracted & displayed
it but not able to update the xheader with user modified value.Do I
need to modify
PR_TRANSPORT_MESSAGE_HEADERS or use the same code of addXheader i.e.
sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
Tag = sItem.GetIDsFromNames("{00020386-0000-0000-
C000-000000000046}", Prop)
Tag = Tag Or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = Val
sItem.Subject = sItem.Subject
sItem.Save()


Thanks- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -





 




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
Received eMail Message Not Showng pmitch Outlook Express 1 September 9th 07 10:46 AM
macro to update excel when email received into outlook folder [email protected] Outlook and VBA 1 July 17th 07 09:42 PM
I received the message"this file can Minneapois Outlook - Calandaring 0 October 30th 06 06:06 PM
No sound when message received ChelseaWarren Outlook Express 3 August 21st 06 01:32 PM
Message received by recipient not clear carlo Outlook Express 4 July 1st 06 09:25 PM


All times are GMT +1. The time now is 05:14 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.