Commit 1c7d50a6 1c7d50a62de57fbb0552bcde955db928908b2a98 by Sergey Poznyakoff

Bugfix.

* libmailutils/mailbox/mailbox.c (_MBOX_CHECK_FLAGS): Fix return code.
1 parent e072a273
......@@ -448,7 +448,7 @@ mu_mailbox_flush (mu_mailbox_t mbox, int expunge)
if (mbox->flags & _MU_MAILBOX_REMOVED) \
return MU_ERR_MBX_REMOVED; \
if (!(mbox->flags & _MU_MAILBOX_OPEN)) \
return _MU_MAILBOX_OPEN
return MU_ERR_NOT_OPEN
#define _MBOX_CHECK(mbox,method) \
_MBOX_CHECK_FLAGS(mbox); \
......