        Cone©

MAIL::ACCOUNT::REMOV(3x)

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[1] 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.

SEE ALSO

mail::ACCOUNT::saveFolderIndexInfo(3x), mail::ACCOUNT::getFolderIndexInfo(3x), mail::ACCOUNT::removeMessages(3x).

AUTHOR

Sam Varshavchik

NOTES

1.  UIDPLUS
    http://www.rfc-editor.org/rfc/rfc2359.txt