why outlook change forward mail

A

Ashish

In outlook addin if i select a mail in active explorer and click on forward
button then outlook will create a new mail which contains contents of
selected mail.
I can access new mail in onnewinspector. If i change body of new mail
(either in onnewinspector or item_open) then body of new mail is change. But
it also change the body of selected mail(for which we click on fwd button).
why? Why outlook change body of selected mail?How to avoid this. If we
modify new(forward) mail then it should not change selected mail.
I can access to selected mail when click on forward button.
If it's outlook internal functionality that if we modify new(forward) mail
then it'll also modify selected mail then which event in on new inspector i
can use to modify the selected mail(chnage original body back).
 
S

Sue Mosher [MVP]

Outlook has no internal functionality that would change the body of an
existing item when it is forwarded. The item is marked as forwarded, but
that's done in hidden MAPI properties, not the item body.

The most likely explanation is that your code is making changes to the
original item.
 
A

Ashish

Hi Sue,

It's not my code which change original item. WHen i click on forward button
outlook call OnNewInspector where i change body and return. I dont call my
code there but it changes original mail body for which i click forward
button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top