#include <mailfolder.h>
buffy::MailFolder::MailFolder |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
buffy::MailFolder::MailFolder |
( |
const MailFolder & |
mf | ) |
|
throw | ( | |
| ) | | |
|
inline |
MailFolder MailFolder::accessFolder |
( |
const std::string & |
path | ) |
|
|
static |
Create a MailFolder object given a path, autodetecting the folder type.
If no suitable folder type has been found or other problems happened, it will return a null MailFolder object.
bool buffy::MailFolder::changed |
( |
| ) |
|
|
inline |
Return true if the folder has been changed since the last updateStatistics.
A folder is not scanned automatically when the MailFolder object is created: at the beginning, all statistics will return -1 and changed() will return true;
void MailFolder::enumerateFolders |
( |
const std::string & |
path, |
|
|
Consumer< MailFolder > & |
cons |
|
) |
| |
|
static |
Scan a directory and pass to a Consumer all the folders that are found.
vector< MailFolder > MailFolder::enumerateFolders |
( |
const std::string & |
path | ) |
|
|
static |
Scan a directory and return the folder it contains.
int buffy::MailFolder::getMsgFlagged |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Get the number of messages flagged 'important'.
int buffy::MailFolder::getMsgNew |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Get the number of new messages.
int buffy::MailFolder::getMsgTotal |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Get the total number of messages.
int buffy::MailFolder::getMsgUnread |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Get the number of unread messages.
const std::string& buffy::MailFolder::name |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Return the presentation name of this mail folder.
const std::string& buffy::MailFolder::path |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Return the path to this mail folder.
std::string buffy::MailFolder::type |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Return the name of the type of this mail folder.
For example: "Maildir" or "Mailbox"
void buffy::MailFolder::updateStatistics |
( |
| ) |
|
|
inline |
bool buffy::MailFolder::valid |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Return true if this MailFolder is not a null mail folder.
The documentation for this class was generated from the following files: