Freigeben über


PR_MESSAGE_FLAGS

4/8/2010

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

Remarks

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:

  • MSGFLAG_FROMME
    The messaging user sending was the messaging user receiving the message. This flag is meant to be set by the transport provider.
  • MSGFLAG_READ
    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.
  • MSGFLAG_UNSENT
    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.

Requirements

Header mapitags.h
Library cemapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Other Resources

Windows Mobile Defined MAPI Properties