Skip to content

Commit

Permalink
imap: Set client_command_context.tagline_reply before syncing.
Browse files Browse the repository at this point in the history
Command post-hooks can't see it otherwise.
  • Loading branch information
sirainen committed May 4, 2016
1 parent 5f50fec commit 139007f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imap/imap-sync.c
Expand Up @@ -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;
Expand Down

0 comments on commit 139007f

Please sign in to comment.