![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |