[dovecot-cvs] dovecot/src/imap cmd-append.c,1.72,1.73

cras at dovecot.org cras at dovecot.org
Sat Jan 28 13:32:13 EET 2006


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv11314

Modified Files:
	cmd-append.c 
Log Message:
Last APPEND-fix left connection always stuck afterwards.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- cmd-append.c	26 Jan 2006 21:08:53 -0000	1.72
+++ cmd-append.c	28 Jan 2006 11:32:10 -0000	1.73
@@ -61,7 +61,11 @@
 		/* command execution was finished. Note that if cmd_sync()
 		   didn't finish, we didn't get here but the input handler
 		   has already been moved. So don't do anything important
-		   here.. */
+		   here..
+
+		   reset command once again to reset cmd_sync()'s changes. */
+		_client_reset_command(client);
+
 		if (client->input_pending)
 			_client_input(client);
 	}
@@ -122,6 +126,7 @@
 		mailbox_close(&ctx->box);
 
 	ctx->client->bad_counter = 0;
+	/* reset command so that flush callback gets changed back to normal. */
 	_client_reset_command(ctx->client);
 }
 



More information about the dovecot-cvs mailing list