int ret = 0;
i_zero(&set);
- if (_ctx->cur_client_ip.family != 0) {
+ if (cctx->remote_ip.family != 0) {
/* include the doveadm client's IP address in the ps output */
set.process_title_prefix = t_strdup_printf(
- "%s ", net_ip2addr(&_ctx->cur_client_ip));
+ "%s ", net_ip2addr(&cctx->remote_ip));
}
set.sync_since_timestamp = ctx->sync_since_timestamp;
set.sync_until_timestamp = ctx->sync_until_timestamp;
i_set_failure_prefix("dsync-server(%s): ", user->username);
name = i_stream_get_name(ctx->input);
- if (_ctx->cur_client_ip.family != 0) {
+ if (cctx->remote_ip.family != 0) {
/* include the doveadm client's IP address in the ps output */
process_title_prefix = t_strdup_printf(
- "%s ", net_ip2addr(&_ctx->cur_client_ip));
+ "%s ", net_ip2addr(&cctx->remote_ip));
}
} else {
/* the log messages go via stderr to the remote dsync,
i_assert(cctx->username != NULL);
doveadm_cctx_to_storage_service_input(cctx, &ctx->storage_service_input);
- ctx->cur_client_ip = cctx->remote_ip;
ctx->cur_username = cctx->username;
ctx->storage_service = mail_storage_service_init(master_service, NULL,
ctx->service_flags);
}
if (doveadm_verbose)
printf("\n");
- ip = net_ip2addr(&ctx->cur_client_ip);
+ ip = net_ip2addr(&cctx->remote_ip);
if (ip[0] == '\0')
i_set_failure_prefix("doveadm: ");
else
struct mail_search_args *search_args;
struct istream *users_list_input;
- struct ip_addr cur_client_ip;
const char *cur_username;
struct mail_storage_service_user *cur_service_user;
struct mail_user *cur_mail_user;