G
Guest
I am creating an Outlook 2003 add-in using C# and VSTO second edition. I have
created a CommandBarButton, and want to redirect an email to a given email
address when the button is clicked. It is of importance that the original
subject, content and sender/recievers are kept.
I have the button click event up and running, and I have also extracted the
selected MailItem.
1) Is there framework support in the Outlook OM for redirecting a MailItem
to a given email account, given my criterias above? If there is no direct
support for this, does anyone know a workaround? Code examples are much
appreciated.
2) When the mail message is redirected, I would like to mark the original
message somehow, so the user easily can see that the button has been clicked.
I was thinking to set a custom flag, but that could interfere routines for
the users that use the normal flagging functionality. Any ideas on how to
solve this? Code examples?
3) I also need to prevent that the same email is redirected again by
deactivating the button. I picture that the event handler checks the
"redirected" flag of the message. Does anyone know what event to handle to
catch a change in selection?
Thanks in advance!
Regards,
Anders
created a CommandBarButton, and want to redirect an email to a given email
address when the button is clicked. It is of importance that the original
subject, content and sender/recievers are kept.
I have the button click event up and running, and I have also extracted the
selected MailItem.
1) Is there framework support in the Outlook OM for redirecting a MailItem
to a given email account, given my criterias above? If there is no direct
support for this, does anyone know a workaround? Code examples are much
appreciated.
2) When the mail message is redirected, I would like to mark the original
message somehow, so the user easily can see that the button has been clicked.
I was thinking to set a custom flag, but that could interfere routines for
the users that use the normal flagging functionality. Any ideas on how to
solve this? Code examples?
3) I also need to prevent that the same email is redirected again by
deactivating the button. I picture that the event handler checks the
"redirected" flag of the message. Does anyone know what event to handle to
catch a change in selection?
Thanks in advance!
Regards,
Anders