none
How to create a message with an attachment of type afStorage? RRS feed

  • Question

  • Hi,

    just used MS-OXMSG to write msg files with the structured storage API.

    Everything is working fine so far but I have not found a way to create messages with Outlook which contain attachments of type afStorage (PR_ATTACH_METHOD == 6) like described in 2.2.2.2 with a sample in 3.3.

    I would like to create those messages to test my code. Can someone point me to a way to create those messages?

    I tried adding different objects with Outlook but that gave me only PR_ATTACH_METHOD 1 and 5.

    Thanks,
    Sven


    -- SvenC

    Tuesday, June 19, 2012 7:31 AM

Answers

  • Hi Sven,

    Thank you for your patience. You asked how to create a message with PidTagAttachMethod (0x3705) property with value afStorage (0x00000006).
    I used MFCMAPI to check the result. Here are the steps in Outlook 2010:

    Home / New E-mail
    Format Text / Rich Text
    To…     <yourself>
    Subject: Hunt for property 0x3705 with value 6
    any text
    Insert / Object
                    from the dialog, e.g. choose “Create from File” and pick an Excel spreadsheet. Click OK
    Send

    Open MFCMAPI
    Session / Logon …
    Double click on your mailbox
    Expand Root / IPM_SUBTREE
    Double click on Inbox, sort by Received, in the Subject column you should see your mail
    Select it and find PR_MESSAGE_ATTACHMENTS property
    Right click on it and select “Open as entry ID or object”, see picture


    In the new window you can see what you are looking for


    Thanks, Vilmos

    Friday, July 20, 2012 8:33 PM

All replies

  • Hi Sven,

    Thanks for you question about PR_ATTACH_METHOD (6) and MS-OXMSG.  One of the Open Specifications team will respond shortly to begin working with you.

    Best regards,
    Tom Jebo
    Escalation Engineer
    Microsoft Open Specifications

    Tuesday, June 19, 2012 11:18 AM
    Moderator
  • Hi Sven,

    I am the engineer who will be working with you on this issue. I am currently researching the problem and will provide you with an update soon.

    Regards,
    Vilmos Foltenyi - MSFT

    Wednesday, June 20, 2012 7:25 AM
  • Hi Vilmos,

    thank you for looking at my problem.

    Do you have some information how to create attachments of type adStorage?

    Regards,
    Sven Carstensen


    -- SvenC

    Monday, June 25, 2012 8:54 PM
  • Hi Vilmos,

    do you have any Information, yet?

    Thanks
    Sven


    -- SvenC

    Monday, July 2, 2012 5:00 PM
  • Hi Sven,

    You are not the first person running into this problem and no solution found, yet. I also tried to create a message with attachment type afStorage (6) with Outlook and observed the same problems as you. I’ll continue to research the problem involving others and I’ll let you know when new information is available.

    Thanks, Vilmos

    Thursday, July 5, 2012 8:48 PM
  • Hi Sven,

    Thank you for your patience. You asked how to create a message with PidTagAttachMethod (0x3705) property with value afStorage (0x00000006).
    I used MFCMAPI to check the result. Here are the steps in Outlook 2010:

    Home / New E-mail
    Format Text / Rich Text
    To…     <yourself>
    Subject: Hunt for property 0x3705 with value 6
    any text
    Insert / Object
                    from the dialog, e.g. choose “Create from File” and pick an Excel spreadsheet. Click OK
    Send

    Open MFCMAPI
    Session / Logon …
    Double click on your mailbox
    Expand Root / IPM_SUBTREE
    Double click on Inbox, sort by Received, in the Subject column you should see your mail
    Select it and find PR_MESSAGE_ATTACHMENTS property
    Right click on it and select “Open as entry ID or object”, see picture


    In the new window you can see what you are looking for


    Thanks, Vilmos

    Friday, July 20, 2012 8:33 PM
  • That works.

    Seems to depend on RTF, I tried to add OLE attachments only to HTML Messages.

    Thank you very much


    -- SvenC

    Friday, July 20, 2012 8:45 PM