1 ConeĀ©
2
3MAIL::FOLDER::TOSTRI(3x)Cone: COnsole Newsreader And EMAIL::FOLDER::TOSTRI(3x)
4
5
6
8 mail::folder::toString - Save a folder object
9
11 #include <libmail/mail.H>
12 mail::folder *folder;
13
14 std::string str=folder->toString(void);
15
17 This method returns a std::string that can be placed in some quiet, out
18 of the way spot. At some later point in time, passing the std::string
19 to mail::account::folderfromstring(3x) will create a mail::folder
20 object that will refer to the same folder as the original object.
21
22 Note
23 Folders may only be recreated by mail::account objects that
24 reference the same mail account referenced by the original
25 mail::folder object.
26
28 This function returns a std::string that the application should not
29 attempt to interpret in any way (except as a parameter to
30 mail::account::folderfromstring(3x).
31
32 Note
33 mail::folders are linked to their corresponding mail::accounts. A
34 mail::folder created by one mail::account may not be used with a
35 different mail::folder. All mail::folders created by a
36 mail::account are invalidated when this mail::account object is
37 destroyed. Note that the mail::folder objects are not automatically
38 destroyed; the application is still responsible for destroying any
39 remaining mail::folders, after their a mail::account is destroyed.
40
42 mail::account::folderfromstring(3x).
43
45 Sam Varshavchik
46
47
48
49ConeĀ© 08/25/2016 MAIL::FOLDER::TOSTRI(3x)