public function __construct($params) { if (is_array($params)) { $params =
(object)$params;
} $this->_has
['flags'
] = true;
if ($params instanceof Zend_Mail_Protocol_Imap
) { $this->_protocol =
$params;
try { $this->
selectFolder('INBOX'
);
} catch(Zend_Mail_Storage_Exception
$e) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('cannot select INBOX, is this a valid transport?', 0,
$e);
} return;
} if (!
isset($params->user
)) { /**
* @see Zend_Mail_Storage_Exception
*/