Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiMailboxAccess.CreateNewFolder

function CreateNewFolder(const aAddress, aFolder: string; out aExisted: Boolean): Boolean;
IMAP CREATE: True only when THIS CALL made the folder. False with aExisted True when a folder of that name already exists - by SameFolderName, after trimming, and INBOX or '' included - and False with aExisted False when the name is refused or the folder cannot be made. The test and the creation are one step under the folder-name lock, which every store object over one root shares: of calls racing for one name, from any session or process, exactly one is True.