From: Brendan Cully Date: Mon, 2 Apr 2007 17:02:57 +0000 (-0700) Subject: Cache IMAP access checks X-Git-Tag: mutt-1-5-15-rel~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cec81cbe74b723f579996d81874527a7d981907;p=mutt Cache IMAP access checks --- diff --git a/imap/imap.c b/imap/imap.c index 8a8c64c4..b42da8eb 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -83,8 +83,14 @@ int imap_access (const char* path, int flags) FREE (&mx.mbox); return 0; } - FREE (&mx.mbox); + + if (imap_mboxcache_get (idata, mailbox)) + { + dprint (3, (debugfile, "imap_access: found %s in cache\n", mailbox)); + return 0; + } + imap_munge_mbox_name (mbox, sizeof (mbox), mailbox); if (mutt_bit_isset (idata->capabilities, IMAP4REV1))