public function __construct($params) { if (is_array($params)) { $params =
(object)$params;
} if (isset($params->filename
)) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('use Zend_Mail_Storage_Mbox for a single file'
);
} if (!
isset($params->dirname
) || !
is_dir($params->dirname
)) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('no valid dirname given in params'
);
} $this->_rootdir =
rtrim($params->dirname, DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR;