]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Set client_command_context.tagline_reply before syncing.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 4 May 2016 12:36:44 +0000 (15:36 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 4 May 2016 12:36:44 +0000 (15:36 +0300)
Command post-hooks can't see it otherwise.

src/imap/imap-sync.c

index df70625380cf831d0d8344f6989038ed9988696a..5403605cf99fc7e9861132bb779631f4463949cc 100644 (file)
@@ -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;