From: Thomas Roessler Date: Thu, 24 Jan 2002 23:17:32 +0000 (+0000) Subject: Ups, don't use the wrong check function... X-Git-Tag: mutt-1-5-1-rel~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d76dc8521af0fc7f1f7cd1d0b70117f298fb29ec;p=mutt Ups, don't use the wrong check function... --- diff --git a/mh.c b/mh.c index 2869b536..dc6edcef 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++)