1 ConeĀ©
2
3MAIL::ACCOUNT::GETFO(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::GETFO(3x)
4
5
6
8 mail::ACCOUNT::getFolderFromString - Restore a folder object
9
11 #include <libmail/sync.H>
12
13 mail::ACCOUNT *mail;
14 mail::folder *folder;
15
16 std::string savedFolder=folder->toString();
17
18 ...
19
20 mail::folder *f=mail->getFolderFromString(std::string savedFolder);
21
23 This function is the mail::ACCOUNT equivalent of
24 mail::account::folderFromString(3x). See the description of this
25 function for more information.
26
28 This function returns a NULL pointer if it cannot allocate memory for
29 the new mail::folder object.
30
31 Note
32 mail::folders are linked to their corresponding mail::accounts. A
33 mail::folder created by one mail::account may not be used with a
34 different mail::folder. All mail::folders created by a
35 mail::account are invalidated when this mail::account object is
36 destroyed. Note that the mail::folder objects are not automatically
37 destroyed; the application is still responsible for destroying any
38 remaining mail::folders, after their a mail::account is destroyed.
39
41 mail::account::folderFromString(3x).
42
44 Sam Varshavchik
45
46
47
48ConeĀ© 08/25/2016 MAIL::ACCOUNT::GETFO(3x)