public function selectFolder($globalName) { $this->_currentFolder =
(string)$globalName;
// getting folder from folder tree for validation
$folder =
$this->
getFolders($this->_currentFolder
);
try { $this->
_openMaildir($this->_rootdir . '.' .
$folder->
getGlobalName());
} catch(Zend_Mail_Storage_Exception
$e) { // check what went wrong
if (!
$folder->
isSelectable()) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception("{
$this->_currentFolder
} is not selectable", 0,
$e);
}