diff src/imap/imap-fetch.c @ 2730:eef378c0c07d HEAD

Don't send extra ")" line with bad FETCH parameters.
author Timo Sirainen <tss@iki.fi>
date Mon, 11 Oct 2004 16:24:03 +0300
parents ca9d5d046f23
children 192da9681e1b
line wrap: on
line diff
--- a/src/imap/imap-fetch.c	Mon Oct 11 16:14:59 2004 +0300
+++ b/src/imap/imap-fetch.c	Mon Oct 11 16:24:03 2004 +0300
@@ -93,6 +93,7 @@
 	ctx->seen_flag.flags = MAIL_SEEN;
 	ctx->all_headers_buf = buffer_create_dynamic(client->cmd_pool, 128);
 	ctx->handlers = buffer_create_dynamic(client->cmd_pool, 128);
+	ctx->line_finished = TRUE;
 	return ctx;
 }
 
@@ -152,7 +153,6 @@
 	ctx->search_ctx =
 		mailbox_search_init(ctx->trans, NULL, search_arg, NULL,
 				    ctx->fetch_data, ctx->all_headers_ctx);
-	ctx->line_finished = TRUE;
 }
 
 int imap_fetch(struct imap_fetch_context *ctx)