Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   update xheader of received message (http://www.outlookbanter.com/outlook-vba/59147-update-xheader-received-message.html)

sd[_2_] October 17th 07 03:07 PM

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


Dmitry Streblechenko October 17th 07 09:20 PM

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




sd[_2_] October 18th 07 06:25 AM

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 -




Dmitry Streblechenko October 18th 07 07:47 AM

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 -






sd[_2_] October 18th 07 03:28 PM

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 -




Dmitry Streblechenko October 18th 07 05:58 PM

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 -







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