From: Michael M Slusarz Date: Thu, 4 Dec 2008 19:49:31 +0000 (-0700) Subject: Update deleted message count if not using cache. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=89d3ea2a407635c421ef0ef22fe92f5f90ed8a23;p=horde.git Update deleted message count if not using cache. --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index 15df60045..98b4ce0bb 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -1359,7 +1359,6 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base $expunged = array(); $i = 0; $t = $s_res['sort']; - foreach ($tmp['expunge'] as $val) { $expunged[] = $t[$val - 1 + $i++]; } @@ -1373,6 +1372,9 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base if (isset($this->_init['enabled']['QRESYNC'])) { $this->_cacheOb->setMetaData($mailbox, array('HICmodseq' => $this->_temp['mailbox']['highestmodseq'])); } + } elseif (!empty($tmp['expunge'])) { + /* Updates status message count if not using cache. */ + $tmp['mailbox']['messages'] -= count($tmp['expunge']); } }