Send Feedback

The PR_MESSAGE_FLAGS property contains a bitmask of flags indicating the origin and current state of a message.

Additional Information

Must be exposed by: Message objects
Identifier: 0x0E07
Property type: PT_LONG
Property tag: 0x0E070003


The PR_MESSAGE_FLAGS property is a nontransmittable message property exposed at both the sending and receiving ends of a transmission, with different values depending upon the client application or store provider involved. This property is initialized by the client or message store provider when a message is created and saved for the first time and then updated periodically by the message store provider, a transport provider, and the MAPI spooler as the message is processed and its state changes.

PR_MESSAGE_FLAGS exists on a message both before and after submission, and on all copies of the received message. Although it is not a recipient property, it is exposed differently to each recipient according to whether it has been read or modified by that recipient.

One or more of the following flags can be set for PR_MESSAGE_FLAGS:

    The messaging user sending was the messaging user receiving the message. This flag is meant to be set by the transport provider.
    The message is marked as having been read. Clients can set this flag by calling a message's IMAPIProp::SetProps method before the message has been saved for the first time. This flag is ignored if the MSGFLAG_ASSOCIATED flag is set.
    The message is still being composed. It is saved, but has not been sent. Typically, this flag is cleared after the message is sent.

A client or message store provider can check the current state of the message at any time by calling the IMAPIProp::GetProps method to read the flag values. The client or provider can also call the IMAPIProp::SetProps method to change any flags that currently have read/write access.

The initial value for PR_MESSAGE_FLAGS is typically MSGFLAG_UNSENT to indicate a message that has not yet been sent.

Message store providers set the MSGFLAG_UNMODIFIED flag for incoming messages. MSGFLAG_UNMODIFIED indicates that a message has not been changed since delivery. A client cannot clear this value after it has been set by a message store provider.


Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: mapitags.h
Library: cemapi.lib

See Also

Windows Mobile Defined MAPI Properties

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.