mail::ACCOUNT::deleteFolder — Delete a folder
#include <libmail/sync.H>
mail::ACCOUNT *mail;
mail::folder *folder;
bool
ok=mail->deleteFolder( |
const mail::folder *folder, |
bool deleteDirectory) ; |
std::string errmsg=mail->getErrmsg();
This function deletes an existing folder. deleteDirectory
specifies
whether the existing folder is regular folder, or a folder
directory.
This function only removes the actual folder in the mail
account. The folder
object is not affected, the application is still
responsible for destroying the object, when it is no longer
needed.