From 02babb0651ad96e2fc10bf7cf74db03322381296 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 28 Mar 2005 10:26:39 +0000 Subject: [PATCH] fix inverted condition leading to endless loop when message is changed while isync is running. --- src/drv_maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index 8421cfd..b2d1635 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -877,7 +877,7 @@ maildir_again( maildir_store_t *ctx, maildir_message_t *msg, const char *fn ) } if ((ret = maildir_rescan( ctx )) != DRV_OK) return ret; - return (msg->gen.status & M_DEAD) ? DRV_OK : DRV_MSG_BAD; + return (msg->gen.status & M_DEAD) ? DRV_MSG_BAD : DRV_OK; } static int