none
NewInspector-Sample overwrites old message texts RRS feed

  • Question

  • I tried the sample http://msdn.microsoft.com/en-us/library/cc668191.aspx where you add a text to subject and body of a newly created message. This worked fine, but when I opened an old message and then forwarded it the subject and body of the newly created forward-message where also replaced. This is gerneally not a problem and you could interpret this as "as expected".

    The problem is now that the original message I tried to forward was changed permanently. Not the newly created forward-message, but the original message itself which lies in my mailbox. So I lost the body (but surprisingly not the subject) of this original message. It was replaced with the sample text.

    How can this be?

    Regards

    Friday, September 14, 2012 1:13 PM

All replies

  • The code in that article will only change subject and body if the item has never been saved (a new item). Are you using exactly that code? Show the code you're using.
     
    Have you tried running in debug mode and seeing exactly what is happening and why?

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "spm_11" <=?utf-8?B?c3BtXzEx?=> wrote in message news:88985da3-c7a4-4153-a18d-bd2d80c48064...

    I tried the sample http://msdn.microsoft.com/en-us/library/cc668191.aspx where you add a text to subject and body of a newly created message. This worked fine, but when I opened an old message and then forwarded it the subject and body of the newly created forward-message where also replaced. This is gerneally not a problem and you could interpret this as "as expected".

    The problem is now that the original message I tried to forward was changed permanently. Not the newly created forward-message, but the original message itself which lies in my mailbox. So I lost the body (but surprisingly not the subject) of this original message. It was replaced with the sample text.

    How can this be?

    Regards


    Ken Slovak MVP - Outlook
    Friday, September 14, 2012 2:43 PM
    Moderator