IMAPMESSAGE  
 

This structure contains information about a message.

typedef struct _IMAPMESSAGE
{ 
    UINT    nMessageId;
    DWORD   dwMessageUID;
    DWORD   dwSize;
    DWORD   dwFlags;
    DWORD   dwTimestamp;
    DWORD   dwReserved;
} IMAPMESSAGE, *LPIMAPMESSAGE;

Members

nMessageId
An sequential integer value which identifies the message. The message identifier is only valid while the mailbox is selected and no messages marked for deletion have been expunged. To maintain a persistent identifier for the message, use a combination of the mailbox UID and message UID.
dwMessageUID
An integer value which specifies a unique identifier for this message. The actual value is determined by the server and should be considered opaque. If the client application stores the message UID on the local system, it should also store the UID for the mailbox that contains the message. If the mailbox UID changes, the message UID may no longer be valid.
dwSize
Specifies the size of the message in bytes. This value may not be the same as the number of characters in the message, particularly if the message text uses Unicode or extended multibyte ANSI sequences. For a structured multipart MIME message, this includes the combined size of all message parts.
dwFlags
A value which specifies one or more message flags. One or more of the following values may be specified:
Value Description
IMAP_FLAG_NONE No value.
IMAP_FLAG_ANSWERED The message has been answered.
IMAP_FLAG_DELETED The message has been marked for deletion.
IMAP_FLAG_DRAFT The message has not been completed and is marked as a draft copy.
IMAP_FLAG_URGENT The message has been flagged for urgent or special attention.
IMAP_FLAG_RECENT The message has been added to the mailbox recently.
IMAP_FLAG_SEEN The message has been read.
dwTimestamp
An integer value which specifies the date and time that the message was added to the mailbox. The value is expressed as the number of seconds since midnight, 1 January 1970 and is the same value that is used for the standard C runtime library time methods. Note that the date and time used is the message's internal date from the mail server, not the value of the Date header field in the message.
dwReserved
A reserved value that is undefined.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmapv12.lib