Bug #8121: Add missing parameter
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 17:17:30 +0000 (11:17 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 17:18:03 +0000 (11:18 -0600)
imp/lib/Mailbox.php

index cc6e263..5ed1249 100644 (file)
@@ -213,7 +213,8 @@ class IMP_Mailbox
                 $uids[$mbox] = array_keys($fetch_res);
 
                 if (!is_null($cache) && !empty($tostore)) {
-                    $cache->set($mbox, $tostore);
+                    $status = $GLOBALS['imp_imap']->ob->status($mbox, Horde_Imap_Client::STATUS_UIDVALIDITY);
+                    $cache->set($mbox, $tostore, $status['uidvalidity']);
                 }
             } catch (Horde_Imap_Client_Exception $e) {}
         }