# HG changeset patch # User Timo Sirainen # Date 1138447930 -7200 # Node ID 4b6f9e5f7f0908b5a3d8238fb5b4ce5e870300bc # Parent 795cc9739eb301f2a1736f62dce6a282b6f690f9 Last APPEND-fix left connection always stuck afterwards. diff -r 795cc9739eb3 -r 4b6f9e5f7f09 src/imap/cmd-append.c --- a/src/imap/cmd-append.c Fri Jan 27 17:58:26 2006 +0200 +++ b/src/imap/cmd-append.c Sat Jan 28 13:32:10 2006 +0200 @@ -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); }