1        ConeĀ©
2
3MAIL::ACCOUNT::READF(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::READF(3x)
4
5
6

NAME

8       mail::ACCOUNT::readFolderInfo - Get folder status
9

SYNOPSIS

11       #include <libmail/sync.H>
12
13       mail::ACCOUNT *mail;
14
15       bool ok=mail->openFolder(const mail::folder *folder,
16                                mail::ACCOUNT::FolderInfo &info);
17
18                                std::string errmsg=mail->getErrmsg();
19

USAGE

21       This function reads the current status of folder, which may refer to
22       any folder in the mail account (not necessarily the currently open
23       folder).
24
25       The following fields in info will be initialized by this function:
26
27       messageCount
28           Total number of messages in the folder.
29
30       unreadCount
31           Total number of unread messages in the folder.
32
33       fastInfo
34           This field should be initialized before calling this function. If
35           set to true the message counts are returned only if they can be
36           computed quickly. Otherwise folderInfoCallback's success method
37           will not be invoked at all, but callback's success method will
38           still be invoked.
39
40           If this field is set to false (the default), the message counts are
41           returned in all cases.
42

RETURN CODES AND CALLBACKS

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

SEE ALSO

49       mail::ACCOUNT::openFolder(3x).
50

AUTHOR

52       Sam Varshavchik
53
54
55
56ConeĀ©                             08/25/2016          MAIL::ACCOUNT::READF(3x)
Impressum