if (!@
mkdir($fulldir) || !@
mkdir($fulldir . DIRECTORY_SEPARATOR . 'cur'
)) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('error while creating new folder, may be created incompletly'
);
} mkdir($fulldir . DIRECTORY_SEPARATOR . 'new'
);
mkdir($fulldir . DIRECTORY_SEPARATOR . 'tmp'
);
$localName =
$parent ?
substr($folder,
strlen($parent) + 1
) :
$folder;
$this->
getFolders($parent)->
$localName =
new Zend_Mail_Storage_Folder($localName,
$folder, true
);
return $fulldir;
} /**
* remove a folder
*
* @param string|Zend_Mail_Storage_Folder $name name or instance of folder
* @return null
* @throws Zend_Mail_Storage_Exception
*/