1 ConeĀ©
2
3MAIL::ACCOUNT::LOGIN(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::LOGIN(3x)
4
5
6
8 mail::ACCOUNT::login - Open a new mail account
9
11 #include <libmail/sync.H>
12
13 mail::ACCOUNT *mail=new mail::ACCOUNT;
14
15 mail::account::openInfo accountOpenInfo;
16
17
18 bool ok=mail->login(accountOpenInfo);
19
20 std::string errmsg=mail->getErrmsg();
21
23 mail::ACCOUNT::login opens a new mail account. The mail account's
24 location is specified by accountOpenInfo. See mail::account::open(3x)
25 for the description of the parameters set by accountOpenInfo.
26
28 This method returns true if it succeeds, or false if it fails. If the
29 method fails, use mail::ACCOUNT::getErrmsg() to read a brief
30 description of the error.
31
32 Note
33 The object must be destroyed if mail::ACCOUNT::login fails. A new
34 mail::ACCOUNT object must be created for another login attempt.
35
37 mail::ACCOUNT::logout(3x), mail::loginUrlEncode(3x),
38 mail::setAppCharset(3x).
39
41 Sam Varshavchik
42
43
44
45ConeĀ© 08/25/2016 MAIL::ACCOUNT::LOGIN(3x)