From: Timo Sirainen Date: Wed, 4 May 2016 12:36:44 +0000 (+0300) Subject: imap: Set client_command_context.tagline_reply before syncing. X-Git-Tag: 2.3.0.rc1~3840 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362db49a9acfb297266cb9a09600689dcffce3cc;p=thirdparty%2Fdovecot%2Fcore.git imap: Set client_command_context.tagline_reply before syncing. Command post-hooks can't see it otherwise. --- diff --git a/src/imap/imap-sync.c b/src/imap/imap-sync.c index df70625380..5403605cf9 100644 --- a/src/imap/imap-sync.c +++ b/src/imap/imap-sync.c @@ -768,12 +768,13 @@ bool cmd_sync(struct client_command_context *cmd, enum mailbox_sync_flags flags, client_send_tagline(cmd, tagline); return TRUE; } + cmd->tagline_reply = p_strdup(cmd->pool, tagline); cmd->sync = p_new(cmd->pool, struct client_sync_context, 1); cmd->sync->counter = client->sync_counter; cmd->sync->flags = flags; cmd->sync->imap_flags = imap_flags; - cmd->sync->tagline = p_strdup(cmd->pool, tagline); + cmd->sync->tagline = cmd->tagline_reply; cmd->state = CLIENT_COMMAND_STATE_WAIT_SYNC; cmd->func = NULL;