1MAIL::FOLDER::CREATE(3x)Cone: COnsole Newsreader And EMAIL::FOLDER::CREATE(3x)
2
3
4
6 mail::folder::create - Create a new folder
7
9 #include <libmail/mail.H>
10
11
12 class myCallback : public mail::callback {
13 public:
14 void success(std::string msg);
15 void fail(std::string msg);
16 };
17
18 folder->create(bool createDirectory, myCallback &callback);
19
21 An alternative way to create a new folder is to use
22 mail::account::folderFromString(3x) to re-create a folder object, and
23 then use the new object´s create method to create the folder.
24
25 See mail::folder::createSubFolder(3x) for more information.
26
28 The application must wait until callback´s success or fail method is
29 invoked. The success method is invoked when this request is succesfully
30 processed. The fail method is invoked if this request cannot be
31 processed. The application must not destroy callback until either the
32 success or fail method is invoked.
33
34 Note
35 callback´s fail method may be invoked even after other callback
36 methods were invoked. This indicates that the request was partially
37 completed before the error was encountered.
38
40 mail::folder::createSubFolder(3x), mail::folder::renameFolder(3x).
41
42
43
44[FIXME: source] 05/08/2010 MAIL::FOLDER::CREATE(3x)