dovecot-2.1: doveadm-server: Reset headers in print output betwe...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 27 06:21:33 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/fdc509644d05
changeset: 14812:fdc509644d05
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 27 06:21:18 2012 +0200
description:
doveadm-server: Reset headers in print output between running commands.

diffstat:

 src/doveadm/client-connection.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 0dc3f56e6468 -r fdc509644d05 src/doveadm/client-connection.c
--- a/src/doveadm/client-connection.c	Tue Nov 27 06:20:44 2012 +0200
+++ b/src/doveadm/client-connection.c	Tue Nov 27 06:21:18 2012 +0200
@@ -139,6 +139,10 @@
 		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,


More information about the dovecot-cvs mailing list