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);
} // seems like file has vanished; rebuilding folder tree - but it's still an exception
$this->
_buildFolderTree($this->_rootdir
);
/**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('seems like the maildir has vanished, I\'ve rebuild the ' .