From: Thomas Roessler Date: Thu, 24 Jan 2002 23:17:32 +0000 (+0000) Subject: Ups, don't use the wrong check function... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c6de9a74e49da83994578487da3f3a2d5b2432c;p=neomutt Ups, don't use the wrong check function... --- diff --git a/mh.c b/mh.c index 2869b536b..dc6edcef8 100644 --- 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++)