From c9ca6ada03f27bfe8c86f61f418afb86971f9dff Mon Sep 17 00:00:00 2001 From: svncommit Date: Sat, 25 Oct 2008 00:01:45 +0000 Subject: added obscure ASCII encoding aliases, added more error checking to RFC2822 date parsing --- program/include/rcube_imap.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'program/include/rcube_imap.php') diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 4a71c974f..e18c14c2e 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1025,14 +1025,16 @@ class rcube_imap $headers = &$this->get_cached_message($cache_key, $uid, true); // return cached message structure - if (is_object($headers) && is_object($headers->structure)) + if (is_object($headers) && is_object($headers->structure)) { return $headers->structure; - + } + // resolve message sequence number - if (!($msg_id = $this->_uid2id($uid))) + if (!($msg_id = $this->_uid2id($uid))) { return FALSE; + } - $structure_str = iil_C_FetchStructureString($this->conn, $this->mailbox, $msg_id); + $structure_str = iil_C_FetchStructureString($this->conn, $this->mailbox, $msg_id); $structure = iml_GetRawStructureArray($structure_str); $struct = false; -- cgit v1.2.3