常用方法
常用方法
常用方法
常用方法
/** * @param Folder $folder * @return bool */ function CreateFolder(&$folder, $forceCreate = false) { $result = true; if ($this->_account->MailProtocol == MAILPROTOCOL_IMAP4 && ($folder->SyncType != FOLDERSYNC_DontSync || $forceCreate)) { $result &= $this->MailStorage->Connect() && $this->MailStorage->CreateFolder($folder); } return $result && $this->DbStorage->Connect() && $this->DbStorage->CreateFolder($folder); }