From 284ea5f924f002038b0dcfd5b2ca3ff1e238a818 Mon Sep 17 00:00:00 2001 From: Jiri Hruska Date: Sun, 3 Mar 2013 11:33:53 +0100 Subject: imap: Fixed custom request handling in imap_done() Fixed imap_done() so that neither the FINAL states are not entered when a custom command has been performed. --- lib/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/imap.c b/lib/imap.c index ca2e43ec6..f1566b361 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1757,7 +1757,7 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status, conn->bits.close = TRUE; /* marked for closure */ result = status; /* use the already set error code */ } - else if(!data->set.connect_only) { + else if(!data->set.connect_only && !imap->custom) { /* Handle responses after FETCH or APPEND transfer has finished */ if(!data->set.upload) state(conn, IMAP_FETCH_FINAL); -- cgit v1.2.3