1mail::ACCOUNT::login(m3axi)l::ACCOUNT Synchronous API refermeanicle::ACCOUNT::login(3x)
2
3
4
6 mail::ACCOUNT::login - Open a new mail account
7
9 #include <libmail/sync.H>
10
11 mail::ACCOUNT *mail=new mail::ACCOUNT;
12
13 mail::account::openInfo accountOpenInfo;
14
15
16
17 bool ok=mail->login (accountOpenInfo);
18
19 std::string errmsg=mail->getErrmsg();
20
22 mail::ACCOUNT::login opens a new mail account. The mail account's
23 location is specified by accountOpenInfo. See mail::account::open(3x)
24 for the description of the parameters set by accountOpenInfo.
25
27 This method returns true if it succeeds, or false if it fails. If the
28 method fails, use mail::ACCOUNT::getErrmsg() to read a brief descrip‐
29 tion of the error.
30
31 Note: The object must be destroyed if mail::ACCOUNT::login
32 fails. A new mail::ACCOUNT object must be created for another
33 login attempt.
34
36 mail::ACCOUNT::logout(3x), mail::loginUrlEncode(3x), mail::setAp‐
37 pCharset(3x).
38
39
40
41 10 April 2006 mail::ACCOUNT::login(3x)