public function createFolder($name,
$parentFolder = null
) { // TODO: we assume / as the hierarchy delim - need to get that from the folder class!
if ($parentFolder instanceof Zend_Mail_Storage_Folder
) { $folder =
$parentFolder->
getGlobalName() . '/' .
$name;
} else if ($parentFolder != null
) { $folder =
$parentFolder . '/' .
$name;
} else { $folder =
$name;
} if (!
$this->_protocol->
create($folder)) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('cannot create folder'
);
}