From c1ab6e56046c7cb7a9a163baab6af8842c96a076 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 26 Sep 2010 23:54:31 -0600 Subject: [PATCH] Sanity checking --- imp/message.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imp/message.php b/imp/message.php index dba6e696a..9afac4098 100644 --- a/imp/message.php +++ b/imp/message.php @@ -227,6 +227,11 @@ try { Horde_Imap_Client::FETCH_HEADERTEXT => array(array('parse' => true, 'peek' => $peek)) ), array('ids' => array($uid))); } catch (Horde_Imap_Client_Exception $e) { + $fetch_ret = null; +} + +if (is_null($fetch_ret) || !isset($fetch_ret[$uid]['headertext'])) { + _returnToMailbox(null, 'message_missing'); require IMP_BASE . '/mailbox.php'; exit; } -- 2.11.0