| INT GetDeletedMessages( |
| |
UINT *lpnMessageIds, |
|
| |
INT nMaxMessages |
|
| ); |
The GetDeletedMessages method returns the message
identifiers for those messages that have been marked for deletion in
the current mailbox.
Parameters
- lpnMessageIds
- A pointer to an array of unsigned integers that will contain
the message identifiers of those messages which have been marked
for deletion in the current mailbox. This parameter may be NULL, in
which case the method will return the number of deleted messages
but will not return their identifiers.
- nMaxMessages
- The maximum number of message identifiers that may be stored in
the lpnMessageIds array. If the lpnMessageIds
parameter is NULL, this value should be zero.
Return Value
If the method succeeds, the return value is the number of messages
marked for deletion in the current mailbox. If the method fails, the
return value is IMAP_ERROR. To get extended error information, call
GetLastError.
Remarks
The message identifiers returned by this method are only valid
until the mailbox is expunged or another mailbox is selected.
To remove the deleted flag from a message, use the
UndeleteMessage method. To prevent all messages in the current
mailbox from being expunged, use the ReselectMailbox method to
reset the current mailbox state.
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
|