]> granicus.if.org Git - mutt/commitdiff
Take setting the index_hint out of the main loop of
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Dec 1998 11:21:27 +0000 (11:21 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Dec 1998 11:21:27 +0000 (11:21 +0000)
mh_check_mailbox().

mh.c

diff --git a/mh.c b/mh.c
index 6cf5625ae03a74b06d3b8dde958426a0bc930200..7b134956fc6f68e13129c00e2d7fb7db04b81f22 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -18,7 +18,8 @@ static const char rcsid[]="$Id$";
  */ 
 
 /*
- * This file contains routines specific to MH and ``maildir'' style mailboxes
+ * This file contains routines specific to MH and ``maildir'' style
+ * mailboxes.
  */
 
 #include "mutt.h"
@@ -782,11 +783,11 @@ int mh_check_mailbox(CONTEXT *ctx, int *index_hint)
       if(index_hint && (i < *index_hint))
        deleted++;
     }
-
-    if(index_hint && (i == *index_hint))
-      *index_hint -= deleted;
   }
 
+  if (index_hint && occult)
+    *index_hint -= deleted;
+  
   /* dump the file name hash */
 
   hash_destroy(&fnames, NULL);