X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fimap.c;h=099be6261173c3a290835118fc2a153d2ee4ad0d;hp=fdd468ed10d8ca08ad912085b967baca54718ab9;hb=42cc85de46ed8971a6c793835023cf26766fb096;hpb=18ea5e8b861632627335b8d94787c742dbf5f567;ds=sidebyside diff --git a/imap/imap.c b/imap/imap.c index fdd468e..099be62 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -1079,7 +1079,7 @@ void imap_close_mailbox (CONTEXT * ctx) return; if (ctx == idata->ctx) { - if (idata->state = IMAP_SELECTED) { + if (idata->state == IMAP_SELECTED) { /* mx_close_mailbox won't sync if there are no deleted messages * and the mailbox is unchanged, so we may have to close here */ if (idata->status != IMAP_FATAL && !ctx->deleted &&