.NET Components for Mobility

Change the type of a message

Last post 11-12-2008 9:10 AM by Inophage. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-10-2008 9:26 PM

    Change the type of a message

     Hi Peter,
    When I add a emailMessage with ITH directly in an Inbox folder, its content is the same as a real one(received via outlook), but in the unread messages list, they are different.
    (see picture)

    Free Image Hosting at www.ImageShack.us

    - Icons are different. The icon with the pen (email create via ITH) seems to be a drafts email icon not an unread email.
    - The first email (received via outlook) shows us the sender name and the second email (create via ITH) shows us the "To adresse".

    My question is : Can I change the type of a message ? (a drafts message convert to a received message for example)

    I see "MessageClass" and "MessageFlags" properties but I don't know how to use it.

     

    Best regards,

    Inophage

    Filed under:
  • 11-12-2008 5:13 AM In reply to

    Re: Change the type of a message

    There is only one message class used for all standard emails so you shouldn't change that (IPM.Note). The flags will indicate whether message is read and if it is from the user of the device (the default for a newly created message). This is why the message displays the recipient rather than the sender. You can set the MessageFlags to zero to clear these flags e.g.

    message.Properties[MessageProperty.MessageFlags] = 0;

    Peter

  • 11-12-2008 9:10 AM In reply to

    Re: Change the type of a message

    Thank you Peter, you're a great Genius.  Yes

Page 1 of 1 (3 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting