VMime
|
Public Member Functions | |
IMAPFolderStatus () | |
IMAPFolderStatus (const IMAPFolderStatus &other) | |
unsigned int | getMessageCount () const |
unsigned int | getUnseenCount () const |
shared_ptr< folderStatus > | clone () const |
unsigned int | getRecentCount () const |
vmime_uint32 | getUIDValidity () const |
vmime_uint32 | getUIDNext () const |
vmime_uint64 | getHighestModSeq () const |
bool | updateFromResponse (const IMAPParser::mailbox_data *resp) |
bool | updateFromResponse (const IMAPParser::resp_text_code *resp) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Holds the status of an IMAP folder.
IMAPFolderStatus | ( | ) |
IMAPFolderStatus | ( | const IMAPFolderStatus & | other | ) |
|
virtual |
vmime_uint64 getHighestModSeq | ( | ) | const |
Returns the highest modification sequence of all messages in the folder, or 0 if not available for this folder, or not supported by the server.
The server must support the CONDSTORE extension for this to be available.
|
virtual |
Returns the total number of messages in the folder.
Implements folderStatus.
unsigned int getRecentCount | ( | ) | const |
Returns the the number of messages with the Recent flag set.
vmime_uint32 getUIDNext | ( | ) | const |
Returns the UID value that will be assigned to a new message in the folder.
If the server does not support the UIDPLUS extension, it will return 0.
vmime_uint32 getUIDValidity | ( | ) | const |
Returns the UID validity of the folder for the current session.
If the server is capable of persisting UIDs accross sessions, this value should never change for a folder.
|
virtual |
Returns the number of unseen messages in the folder.
Implements folderStatus.
bool updateFromResponse | ( | const IMAPParser::mailbox_data * | resp | ) |
Reads the folder status from the specified IMAP response.
resp | parsed IMAP response |
References vmime::count().
bool updateFromResponse | ( | const IMAPParser::resp_text_code * | resp | ) |
Reads the folder status from the specified IMAP response.
resp | parsed IMAP response |