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

NAME

8       mail::ACCOUNT::login - Open a new mail account
9

SYNOPSIS

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

USAGE

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

RETURN CODES AND CALLBACKS

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

SEE ALSO

37       mail::ACCOUNT::logout(3x), mail::loginUrlEncode(3x),
38       mail::setAppCharset(3x).
39

AUTHOR

41       Sam Varshavchik
42
43
44
45ConeĀ©                             08/25/2016          MAIL::ACCOUNT::LOGIN(3x)
Impressum