From: Timo Sirainen Date: Tue, 27 Nov 2012 04:21:18 +0000 (+0200) Subject: doveadm-server: Reset headers in print output between running commands. X-Git-Tag: 2.1.11~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a26150fe469a4e76a3a21d01edd6c835b7d8994;p=thirdparty%2Fdovecot%2Fcore.git doveadm-server: Reset headers in print output between running commands. --- diff --git a/src/doveadm/client-connection.c b/src/doveadm/client-connection.c index cfa64a12f0..163099d90b 100644 --- a/src/doveadm/client-connection.c +++ b/src/doveadm/client-connection.c @@ -139,6 +139,10 @@ doveadm_mail_cmd_server_run(struct client_connection *conn, o_stream_send(conn->output, "\n+\n", 3); } pool_unref(&ctx->pool); + + /* clear all headers */ + doveadm_print_deinit(); + doveadm_print_init(DOVEADM_PRINT_TYPE_SERVER); } static bool client_is_allowed_command(const struct doveadm_settings *set,