/**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception("can't read folders in maildir"
);
} $dirs = array
();
while (($entry =
readdir($dh)) !== false
) { // maildir++ defines folders must start with .
if ($entry[0
] != '.' ||
$entry == '.' ||
$entry == '..'
) { continue;
} if ($this->
_isMaildir($this->_rootdir .
$entry)) { $dirs[] =
$entry;
} } closedir($dh);
sort($dirs);
$stack = array
(null
);
$folderStack = array
(null
);
$parentFolder =
$this->_rootFolder;
$parent = '.';