]> granicus.if.org Git - neomutt/commitdiff
Fix logic error introduced in [efbcef81ac49]
authorBrendan Cully <brendan@kublai.com>
Fri, 6 Apr 2007 01:52:58 +0000 (18:52 -0700)
committerBrendan Cully <brendan@kublai.com>
Fri, 6 Apr 2007 01:52:58 +0000 (18:52 -0700)
imap/message.c

index c034393f9e396103dee03f3cf4b3de1d4c38914e..8e4e0fcd2fec4e7d4c712c3edb58c4fe365944b4 100644 (file)
@@ -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);