none
Attachment size is not displayed after the EML file is converted to MSG. We are IConverterSession for conversion. RRS feed

  • Question

  • Hi,

    Could someone help me how conversion of EML to MSG should be done to display the size of the attachment when the file is opened.

    we are using IConverterSession  for conversion. 

    MSG file in inbox does displays the size of the attachment but once it is converted the attachment size is lost.

    MSG file from inbox: 

    MSG file after conversion:

    Thanks


    thopulou Associate Software Engineer

    Wednesday, June 19, 2019 10:59 AM

All replies

  • Hello, 

    Do you get the same results with MFCMAPI?


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Wednesday, June 19, 2019 2:48 PM
  • I am not sure I understand what you mean by "MSG file in inbox" - do you mean the attachment size is shown for a message in one of the Outlook folders, but not for a standalone MSG file?

    Can you see the PR_ATTACH_SIZE property in OutlookSpy or MFCMAPI?


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

    Wednesday, June 19, 2019 4:21 PM
  • Yes Eugene the MFCMAPI shows the same behavior

    thopulou Associate Software Engineer

    Thursday, June 20, 2019 2:40 PM
  • Hi Dmitry,

    Yes attachment size is shown for a message in one of the Outlook Folders, but not for a standalone MSG file.

    PR_ATTACH_SIZE is not there when i check with OutlookSpy and MFCMAPI.

    Thanks,


    thopulou Associate Software Engineer

    Thursday, June 20, 2019 2:49 PM
  • So that is the expected behavior for all MSG file, whether they are created by your code or not, right?

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

    Thursday, June 20, 2019 5:54 PM
  • Well, it confirms that everything works correctly. 

    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Thursday, June 20, 2019 5:58 PM
  • Hi Dmitry,

    Yes MFCMAPI also shows the same behavior .

    So i will close this customer's ticket as expected behavior.

    I guess there is no workaround with IConverterSession to display the attachment size.

    Thanks,


    thopulou Associate Software Engineer

    Friday, June 21, 2019 5:42 AM
  • Is there any way we can work with IConverterSession to display the attachment size?

    How did actually Microsoft display the attachment size in the Inbox?

    Thanks,


    thopulou Associate Software Engineer

    Monday, June 24, 2019 5:40 AM
  • This is notan  IConverterSession specific problem. This us due to the fact that standalone MSG files do not expose that property (it is supposed to be evaluated and returned by the store provider rather than set by the client code).


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

    Tuesday, June 25, 2019 10:43 PM