1 ConeĀ©
2
3MAIL::ACCOUNT::CHECK(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::CHECK(3x)
4
5
6
8 mail::account::checkNewMail - Check for new mail
9
11 #include <libmail/mail.H>
12
13
14 class myCallback : public mail::callback {
15 public:
16 void success(std::string msg);
17 void fail(std::string msg);
18 };
19
20 mail::account *account;
21
22 account->checkNewMail(myCallback &callback);
23
25 This request checks for new messages in the currently open folder. With
26 some accounts this request also checks for any messages that were
27 removed from the folder by another process or application.
28
30 The application must wait until callback's success or fail method is
31 invoked. The success method is invoked when this request is succesfully
32 processed. The fail method is invoked if this request cannot be
33 processed. The application must not destroy callback until either the
34 success or fail method is invoked.
35
36 Note
37 callback's fail method may be invoked even after other callback
38 methods were invoked. This indicates that the request was partially
39 completed before the error was encountered.
40
41 This request may result in additional callback methods invoked before
42 the success method is invoked. The currently opened folder's
43 callback::folder's object's newMessages method will be invoked if the
44 current folder has any new messages. The messagesRemoved and
45 messageChanged methods may also be invoked.
46
48 Sam Varshavchik
49
50
51
52ConeĀ© 08/25/2016 MAIL::ACCOUNT::CHECK(3x)