Sign In  Sign Up Live-Chat

Outlook properties

Last post 06-29-2009, 2:16 AM by saqib.razzaq. 4 replies.
Sort Posts: Previous Next
  •  06-20-2009, 11:10 AM 184707

    Outlook properties .NET

    Attachment: Present (inaccessible)

    Hi all

    I have an application that read a stream msg file.

    There is a property I need to retrive it from that msg.

    What I discovered is that thses property  Id is changed from msg file to another msg file.

    e.g.

    Outlook.MapiProperty prop = msg.Properties[2147680287];

    if (prop == null)

                prop = msg.Properties[2149253151];

    if (prop == null)

               prop = msg.Properties[2149056543];

    if (prop == null)

             prop = msg.Properties[2147745823];

    if (prop != null)

          return prop.ToString();

    so here I'm using 4 values to get the same property, and some times I end up with null prop.

    I applay this for a special msg file of  message class type =  "IPM.Note.EnterpriseVault.Shortcut"

    I'm sure the property is saved in the msg file, see the attached file

    thanks

     
  •  06-21-2009, 6:15 AM 184725 in reply to 184707

    Re: Outlook properties .NET

    Attachment: Present (inaccessible)

    Hi,

    Thanks for considering Aspose.

    Instead of using long values in msg.Properties[], you may use the MapiPropertyTag class. Please find the attached utility that loads the msg file and shows the attachments, mapi properties etc. You may test the msg file using this sample, which MapiPropertyTag member holds your required data.

    If you have problems, please post the test msg file here. We will try to find the best possible solution.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Sialkot Team

     
  •  06-21-2009, 9:40 AM 184730 in reply to 184725

    Re: Outlook properties

    Hi razzaq

    I have the attached utility you mentioned. However, it is not showing all the properties, it shows only the properties with a non empty string name.

    Also there is no full mapping between the msg.Properties and MapiPropertyTag.

    I will send you some .msg files within 2 days.

     

    thanks

     
  •  06-23-2009, 2:09 PM 185155 in reply to 184730

    Re: Outlook properties

    Attachment: Present (inaccessible)

    Hi Razzaq,

    I am attaching 3 email stubs and two screenshots to show which properties we want to be able to read.  As you cansee in the screenshots, the properties are there and they contain values. However, when using the Aspose code, we are unable to retrieve values for these fields.

    Can you provide us with the correct code to gain access to these values. 

    thanks

     
  •  06-29-2009, 2:16 AM 185799 in reply to 185155

    Re: Outlook properties .NET

    Hi,

    We are checking the msg files and will get back to you soon.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Sialkot Team

     
View as RSS news feed in XML