mail::ACCOUNT::removeMessages.3x man page

Cone©

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

Info

08/25/2013 Cone© Cone: COnsole Newsreader And E