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

NAME

8       mail::account::folderFromString - Restore a folder object
9

SYNOPSIS

11       #include <libmail/mail.H>
12       mail::account *account;
13       mail::folder *folder;
14
15       std::string savedFolder=folder->toString();
16
17       ...
18
19       mail::folder *f=account->folderFromString(std::string savedFolder);
20

USAGE

22       savedFolder is a folder object that was previously saved as a string.
23       The mail::account::folderFromString method recreates the original
24       folder object. That is, the returned mail::folder object refers to the
25       same mail folder as the original mail::folder object.
26
27           Note
28           Folders may only be recreated by mail::account objects that
29           reference the same mail account referenced by the original
30           mail::folder object.
31

RETURN CODES AND CALLBACKS

33       This function returns a NULL pointer if it cannot allocate memory for
34       the new mail::folder object.
35
36           Note
37           mail::folders are linked to their corresponding mail::accounts. A
38           mail::folder created by one mail::account may not be used with a
39           different mail::folder. All mail::folders created by a
40           mail::account are invalidated when this mail::account object is
41           destroyed. Note that the mail::folder objects are not automatically
42           destroyed; the application is still responsible for destroying any
43           remaining mail::folders, after their a mail::account is destroyed.
44

SEE ALSO

46       mail::account::findFolder(3x).
47

AUTHOR

49       Sam Varshavchik
50
51
52
53ConeĀ©                             08/25/2016          MAIL::ACCOUNT::FOLDE(3x)
Impressum