Name

mail::ACCOUNT::removeMessages — Remove messages from the folder

Synopsis




#include <libmail/sync.H>

mail::ACCOUNT *mail;

mail->removeMessages( const std::vector<size_t> msgList);
 

USAGE

This function removes messages from the currently open folder. msgList is a list of messages to be removed.

Note

This request should not be used with accounts on IMAP servers that do not implement the UIDPLUS IMAP extension. UIDPLUS is required to directly support this functionality. An alternative, much slower, fallback implementation will be used with IMAP servers that do not implement this protocol extension.

Return Codes

This method returns true if it succeeds, or false if it fails. If the method fails, use mail::ACCOUNT::getErrmsg() to read a brief description of the error.