| INT GetMessageParts( |
| |
UINT nMessageId |
|
| ); |
The GetMessageParts method returns the number of parts in a
MIME multipart message on the server.
Parameters
- nMessageId
- Number of message to retrieve the part count for. This value
must be greater than zero. The first message in the mailbox is
message number one.
Return Value
If the method succeeds, the return value is the number of parts in
the specified message. If the method fails, the return value is
IMAP_ERROR. To get extended error information, call
GetLastError.
Remarks
The GetMessageParts method can be used to determine if a
message on the server contains multiple parts. A multipart MIME
message typically contains file attachments or multiple
representations of the message, such as a version of the message in
plain text and another using HTML markup.
If the method returns a value of one, then the message does not
contain multiple parts and is a standard RFC822 formatted message. A
value greater than one indicates that the message does have multiple
parts. The GetMessageEx method may be used to retrieve the
data for a specific part of the message.
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
See Also
|