1mail::ACCOUNT::deletemFaoilld:e:rA(C3CxO)UNT Synchronous APmIairle:f:eArCeCnOcUeNT::deleteFolder(3x)
2
3
4
6 mail::ACCOUNT::deleteFolder - Delete a folder
7
9 #include <libmail/sync.H>
10
11 mail::ACCOUNT *mail;
12 mail::folder *folder;
13
14
15
16 bool ok=mail->deleteFolder (const mail::folder *folder, bool deleteDi‐
17 rectory);
18
19 std::string errmsg=mail->getErrmsg();
20
22 This function deletes an existing folder. deleteDirectory specifies
23 whether the existing folder is regular folder, or a folder directory.
24
25 Note: This function only removes the actual folder in the mail
26 account. The folder object is not affected, the application is
27 still responsible for destroying the object, when it is no
28 longer needed.
29
31 This method returns true if it succeeds, or false if it fails. If the
32 method fails, use mail::ACCOUNT::getErrmsg() to read a brief descrip‐
33 tion of the error.
34
36 mail::ACCOUNT::getFolderFromPath(3x), mail::ACCOUNT::getFolderFrom‐
37 String(3x), mail::folder::createSubFolder(3x).
38
39
40
41 10 April 2006 mail::ACCOUNT::deleteFolder(3x)