Skip to content

Commit

Permalink
imapc: Fixed mailbox name escaping for STATUS
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 15, 2016
1 parent 6e2bb07 commit e21baa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-storage/index/imapc/imapc-storage.c
Expand Up @@ -795,7 +795,8 @@ static int imapc_mailbox_run_status(struct mailbox *box,
mbox->storage->cur_status = status_r;
cmd = imapc_client_cmd(mbox->storage->client->client,
imapc_simple_callback, &sctx);
imapc_command_sendf(cmd, "STATUS %s (%1s)", box->name, str_c(str)+1);
imapc_command_sendf(cmd, "STATUS %s (%1s)",
imapc_mailbox_get_remote_name(mbox), str_c(str)+1);
imapc_simple_run(&sctx);
mbox->storage->cur_status_box = NULL;
mbox->storage->cur_status = NULL;
Expand Down

0 comments on commit e21baa3

Please sign in to comment.