1MAIL::ACCOUNT::CHECK(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::CHECK(3x)
2
3
4

NAME

6       mail::account::checkNewMail - Check for new mail
7

SYNOPSIS

9       #include <libmail/mail.H>
10
11
12       class myCallback : public mail::callback {
13       public:
14           void success(std::string msg);
15           void fail(std::string msg);
16       };
17
18       mail::account *account;
19
20       account->checkNewMail(myCallback &callback);
21

USAGE

23       This request checks for new messages in the currently open folder. With
24       some accounts this request also checks for any messages that were
25       removed from the folder by another process or application.
26

RETURN CODES AND CALLBACKS

28       The application must wait until callback´s success or fail method is
29       invoked. The success method is invoked when this request is succesfully
30       processed. The fail method is invoked if this request cannot be
31       processed. The application must not destroy callback until either the
32       success or fail method is invoked.
33
34           Note
35           callback´s fail method may be invoked even after other callback
36           methods were invoked. This indicates that the request was partially
37           completed before the error was encountered.
38
39       This request may result in additional callback methods invoked before
40       the success method is invoked. The currently opened folder´s
41       callback::folder´s object´s newMessages method will be invoked if the
42       current folder has any new messages. The messagesRemoved and
43       messageChanged methods may also be invoked.
44
45
46
47[FIXME: source]                   05/08/2010          MAIL::ACCOUNT::CHECK(3x)
Impressum