$ret = $GLOBALS['imp_imap']->ob->fetch($this->_mailbox, array(
Horde_Imap_Client::FETCH_STRUCTURE => array('parse' => true)
), array('ids' => array($this->_index)));
- $this->_message = $ret[$this->_index]['structure'];
} catch (Horde_Imap_Client_Exception $e) {
throw new Horde_Exception('Error displaying message.');
}
+
+ if (!isset($ret[$this->_index]['structure'])) {
+ throw new Horde_Exception('Error displaying message.');
+ }
+
+ $this->_message = $ret[$this->_index]['structure'];
}
}
try {
$imp_contents = &IMP_Contents::singleton($index . IMP::IDX_SEP . $mailbox_name);
} catch (Horde_Exception $e) {
+ $imp_mailbox->removeMsgs(true);
_returnToMailbox(null, 'message_missing');
require IMP_BASE . '/mailbox.php';
exit;