From 9b6b247634324963960af47d0dbb15fbd3fd8f0f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 20 Mar 2009 11:51:21 -0600 Subject: [PATCH] Don't update metadata if nothing has changed --- framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index 0a8718c03..821fb3b69 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -822,7 +822,8 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base if (is_null($this->_temp['mailbox']['highestmodseq']) || ($this->_temp['mailbox']['uidvalidity'] != $metadata['uidvalid'])) { $this->_cache->deleteMailbox($mailbox); - } else { + } elseif (!isset($metadata['HICmodseq']) || + ($metadata['HICmodseq'] != $this->_temp['mailbox']['highestmodseq'])) { /* We know the mailbox has been updated, so update the * highestmodseq metadata in the cache. */ $this->_updateMetaData($mailbox, array('HICmodseq' => $this->_temp['mailbox']['highestmodseq'])); -- 2.11.0