]> granicus.if.org Git - neomutt/commitdiff
Ups, don't use the wrong check function...
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Jan 2002 23:17:32 +0000 (23:17 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Jan 2002 23:17:32 +0000 (23:17 +0000)
mh.c

diff --git a/mh.c b/mh.c
index 2869b536bd867dbc05ac79370ec5d4346519250e..dc6edcef886a7b75ef09f7d1361053bade2ffe3e 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -1242,7 +1242,12 @@ int mh_sync_mailbox (CONTEXT * ctx, int *index_hint)
   char path[_POSIX_PATH_MAX], tmp[_POSIX_PATH_MAX];
   int i, j;
 
-  if ((i = mh_check_mailbox (ctx, index_hint)) != 0)
+  if (ctx->magic == M_MH)
+    i = mh_check_mailbox (ctx, index_hint);
+  else 
+    i = maildir_check_mailbox (ctx, index_hint);
+      
+  if (i != 0)
     return i;
 
   for (i = 0; i < ctx->msgcount; i++)