-2007-04-02 10:02 -0700 Brendan Cully <brendan@kublai.com> (becbad651ecc)
+2007-04-02 10:48 -0700 Brendan Cully <brendan@kublai.com> (aa6f191cfa10)
+
+ * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c:
+ Add create flag to imap_mboxcache_get
+
+ * imap/command.c, imap/imap.c: Push mbox cache header cache check
+ into imap_mboxcache_get
* imap/imap.c: Cache IMAP access checks
{
uidvalidity = mutt_hcache_fetch_raw (hc, "/UIDVALIDITY", imap_hcache_keylen);
uidnext = mutt_hcache_fetch_raw (hc, "/UIDNEXT", imap_hcache_keylen);
+ mutt_hcache_close (hc);
if (uidvalidity)
{
+ if (!status)
+ {
+ FREE (&uidvalidity);
+ FREE (&uidnext);
+ return imap_mboxcache_get (idata, mbox, 1);
+ }
status->uidvalidity = *uidvalidity;
status->uidnext = uidnext ? *uidnext: 0;
dprint (3, (debugfile, "mboxcache: hcache uidvalidity %d, uidnext %d\n",
}
FREE (&uidvalidity);
FREE (&uidnext);
- mutt_hcache_close (hc);
}
#endif