dovecot-2.2: dsync: Fixed syncing attribute streams.

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 25 14:18:30 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/acb88f199704
changeset: 16109:acb88f199704
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 25 14:18:20 2013 +0200
description:
dsync: Fixed syncing attribute streams.

diffstat:

 src/doveadm/dsync/dsync-ibc-stream.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 0634cf4acf8d -r acb88f199704 src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Mon Mar 25 13:55:41 2013 +0200
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Mon Mar 25 14:18:20 2013 +0200
@@ -1298,6 +1298,11 @@
 	if (ibc->minor_version < DSYNC_PROTOCOL_MINOR_HAVE_ATTRIBUTES)
 		return DSYNC_IBC_RECV_RET_FINISHED;
 
+	if (ibc->value_input != NULL) {
+		/* wait until the mail's stream has been read */
+		return DSYNC_IBC_RECV_RET_TRYAGAIN;
+	}
+
 	if (ibc->cur_attr != NULL) {
 		/* finished reading the stream, return the mail now */
 		*attr_r = ibc->cur_attr;


More information about the dovecot-cvs mailing list