/**
* Fetch a message
*
* @param int $id number of message
* @return Zend_Mail_Message_File
* @throws Zend_Mail_Storage_Exception
*/
public function getMessage($id) { // TODO that's ugly, would be better to let the message class decide
if (strtolower($this->_messageClass
) == 'zend_mail_message_file' ||
is_subclass_of($this->_messageClass, 'zend_mail_message_file'
)) { return new $this->
_messageClass(array
('file' =>
$this->
_getFileData($id, 'filename'
),
'flags' =>
$this->
_getFileData($id, 'flags'
)));
} return new $this->
_messageClass(array
('handler' =>
$this, 'id' =>
$id, 'headers' =>
$this->
getRawHeader($id),
'flags' =>
$this->
_getFileData($id, 'flags'
)));
} /*
* Get raw header of message or part
*
* @param int $id number of message
* @param null|array|string $part path to part or null for messsage header
* @param int $topLines include this many lines with header (after an empty line)
* @return string raw header
* @throws Zend_Mail_Storage_Exception
*/