From e7df4d5aea1695c709d946dd21303d6884f99f8f Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 3 Jan 2006 17:35:18 +0000 Subject: [PATCH] Pipeline CLOSE (it's always followed by a SELECT or a LOGOUT). --- imap/imap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/imap/imap.c b/imap/imap.c index 8e88bd8b..4bd6d4c2 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -1245,9 +1245,7 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint) if (expunge && ctx->closing) { - if (imap_exec (idata, "CLOSE", 0)) - mutt_error (_("CLOSE failed")); - + imap_cmd_queue (idata, "CLOSE"); idata->state = IMAP_AUTHENTICATED; } @@ -1283,8 +1281,8 @@ void imap_close_mailbox (CONTEXT* ctx) { /* 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 (!ctx->deleted && imap_exec (idata, "CLOSE", 0)) - mutt_error (_("CLOSE failed")); + if (!ctx->deleted) + imap_cmd_queue (idata, "CLOSE"); if (idata->state == IMAP_IDLE) { mutt_buffer_addstr (idata->cmdbuf, "DONE\r\n"); -- 2.40.0