From: Brendan Cully Date: Fri, 6 Apr 2007 01:52:58 +0000 (-0700) Subject: Fix logic error introduced in [efbcef81ac49] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c08832a06befcbc5432f78f6e1c7a5f8c740419;p=neomutt Fix logic error introduced in [efbcef81ac49] --- diff --git a/imap/message.c b/imap/message.c index c034393f9..8e4e0fcd2 100644 --- a/imap/message.c +++ b/imap/message.c @@ -119,7 +119,7 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend) idata->newMailCount = 0; #if USE_HCACHE - if (idata->hcache) + if (idata->hcache && !msgbegin) { uid_validity = mutt_hcache_fetch_raw (idata->hcache, "/UIDVALIDITY", imap_hcache_keylen); uidnext = mutt_hcache_fetch_raw (idata->hcache, "/UIDNEXT", imap_hcache_keylen);