From: Michael M Slusarz Date: Fri, 20 Mar 2009 17:51:21 +0000 (-0600) Subject: Don't update metadata if nothing has changed X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b6b247634324963960af47d0dbb15fbd3fd8f0f;p=horde.git Don't update metadata if nothing has changed --- 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']));