none
Replying All on an email which is converted using IConverterSession adds your own email address back to the recipient list RRS feed

  • Question

  • Hi,

    I convert EML  to MSG using IConverterSession. When i reply all my own email address is added back to the recipient list.

    I can also reproduce this in MFCMAPI.

    Whereas i don't see this behavior in outlook.

    What can be done to avoid this behavior?

    Here is the image:


    thopulou Associate Software Engineer

    Thursday, May 17, 2018 6:16 AM

Answers

  •  

    IConverterSession::SetAdrBook won't help you - you will still see this behavior, this is expected.

     IConverterSession::SetAdrBook is needed for the conversions *to* MIME when EX addresses need to be converted to SMTP. 


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by D thopulou Monday, September 17, 2018 3:09 PM
    Wednesday, May 23, 2018 2:26 PM

All replies

  • That means Outlook does not recognize the recipient as the current user.

    Are you running under an Exchange account, but your address was added as a one-off SMTP entry?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Thursday, May 17, 2018 7:08 AM
  • Hi Dmitry,

    Yes you are absolutely right.

     I am running Exchange account but address was added as a one-off SMTP entry.

    what should i do to avoid this behavior?

    Or is it this a normal behavior?

    Thanks,


    thopulou Associate Software Engineer


    • Edited by D thopulou Thursday, May 17, 2018 1:19 PM
    Thursday, May 17, 2018 11:00 AM
  • You can loop through the recipients and check if the SMTP address of any of the one-off SMTP entries matches one of the proxy addresses of the current user. You can then replace that recipient's entry id, address, address type, etc.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Thursday, May 17, 2018 5:57 PM
  • Hi Dmitry,

    I have a doubt please help me put.

    Why did PR_SEBDER_ADDRTYPE_W changed form EX to SMTP when EML is converted to MSG?

    here are the images which i see from Outlookspy.


    thopulou Associate Software Engineer

    Tuesday, May 22, 2018 6:22 AM
  • Hi,

    I can also reproduce this issue by copying  the MSG file where it is created(say VM1) and and pasting it in some other machine(say VM2) double click it and reply all. Sender will be added to the Recipient list.

    Thanks,


    thopulou Associate Software Engineer

    Tuesday, May 22, 2018 6:31 AM
  • Well, IConverterSession sees an SMTP address an creates a one-off entry. I'd be surprised if it resolved the name address to figure out if it is an EX type entry.

    In your code, do you call IConverterSession::SetAdrBook? 


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, May 22, 2018 5:46 PM
  • Hi Dmitry,

    Current build we are not using IConverterSession::SetAdrBook.

    But Dmitry i can see the same issue with using Redemption DLL.

    Is there any possibility the issue is caused by EML itself?

    Thanks alot


    thopulou Associate Software Engineer

    Wednesday, May 23, 2018 5:37 AM
  •  

    IConverterSession::SetAdrBook won't help you - you will still see this behavior, this is expected.

     IConverterSession::SetAdrBook is needed for the conversions *to* MIME when EX addresses need to be converted to SMTP. 


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by D thopulou Monday, September 17, 2018 3:09 PM
    Wednesday, May 23, 2018 2:26 PM
  • Hi Dmitry,

    Sorry for bothering you again.

    I had to come back again to this thread for some doubts. 

    As you mentioned adding back my own email address back to recipients list when i do Reply All is an expected behavior, I tested in MFCMAPI and also using Redemption Dll. I could reproduce in both.

    But when we do Reply All in Outlook it does not adds back my own email address. What must be the reason that it adds back my own Email address when we convert EML to MSG using MFCMAPI and Redemption Dll?

    Please help me i have to explain to customer about the behavior

    Thanks a lot.


    thopulou Associate Software Engineer

    Wednesday, August 1, 2018 3:59 PM
  • I can only speculate that this is due to the fact that the message is not stamped with the right account property. If you drag the two account stamp properties from a good message to a bad one in OutlookSpy (open IMessage window for both), does it work correctly?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, August 1, 2018 11:05 PM
  • I drag and drop properties from good message to bad message. Still it does not work correctly.

    Should we raise Ticket with Microsoft?

    Thanks.


    thopulou Associate Software Engineer

    Friday, August 3, 2018 6:42 AM
  • So what is different between the good and the bad messages?

    Keep in mind that Outlook might not see your latest changes - it likes to cache old data, especially if you don't open other messages and/or switch to another folder before reopening the message that you modified. Try to restart Outlook before trying to reply to your modified message.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Friday, August 3, 2018 6:36 PM