mail::folder::clone.3x man page


mail::folder::clone — Clone a mail::folder object


mail::folder *folder;

mail::folder *folderCopy;



This function creates a new mail::folder object that refers to the same mail folder, in every possible way. This is usually used by some callback methods that receive pointers to mail::folders, and wish to preserve them for the main application (mail::folders received by callback methods are usually destroyed as soon as the callback method terminates).

Return Codes and Callbacks


mail::folders are linked to their corresponding mail::accounts. A mail::folder created by one mail::account may not be used with a different mail::folder. All mail::folders created by a mail::account are invalidated when this mail::account object is destroyed. Note that the mail::folder objects are not automatically destroyed; the application is still responsible for destroying any remaining mail::folders, after their a mail::account is destroyed.

See Also

mail::folder::createSubFolder(3x), mail::folder::readSubFolders(3x).


Sam Varshavchik


Cone© Cone: COnsole Newsreader And E 08/25/2013