From 9c6de9a74e49da83994578487da3f3a2d5b2432c Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 24 Jan 2002 23:17:32 +0000 Subject: [PATCH] Ups, don't use the wrong check function... --- mh.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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++) -- 2.50.1