Lines Matching defs:cctx

225 	const struct doveadm_cmd_context *cctx = ctx->cctx;
226 bool cli = (cctx->conn_type == DOVEADM_CONNECTION_TYPE_CLI);
232 if (!cli && cctx->input == NULL) {
238 inputs[0] = i_stream_create_dot(cctx->input, FALSE);
369 doveadm_cctx_to_storage_service_input(const struct doveadm_cmd_context *cctx,
374 input_r->remote_ip = cctx->remote_ip;
375 input_r->remote_port = cctx->remote_port;
376 input_r->local_ip = cctx->local_ip;
377 input_r->local_port = cctx->local_port;
378 input_r->username = cctx->username;
385 const struct doveadm_cmd_context *cctx = ctx->cctx;
390 i_assert(cctx != NULL);
392 ip = net_ip2addr(&cctx->remote_ip);
394 i_set_failure_prefix("doveadm(%s): ", cctx->username);
396 i_set_failure_prefix("doveadm(%s,%s): ", ip, cctx->username);
397 doveadm_cctx_to_storage_service_input(cctx, &input);
448 const struct doveadm_cmd_context *cctx = ctx->cctx;
450 i_assert(cctx->username != NULL);
452 doveadm_cctx_to_storage_service_input(cctx, &ctx->storage_service_input);
469 struct doveadm_cmd_context *cctx = ctx->cctx;
476 doveadm_cctx_to_storage_service_input(cctx, &ctx->storage_service_input);
496 cctx->username = user;
521 ip = net_ip2addr(&cctx->remote_ip);
596 const struct doveadm_cmd_context *cctx = ctx->cctx;
597 bool cli = (cctx->conn_type == DOVEADM_CONNECTION_TYPE_CLI);
614 if (cctx->username == NULL)
622 doveadm_print_sticky("username", cctx->username);
659 struct doveadm_cmd_context cctx;
664 i_zero(&cctx);
665 cctx.conn_type = DOVEADM_CONNECTION_TYPE_CLI;
666 cctx.username = getenv("USER");
669 ctx->cctx = &cctx;
692 cctx.username = optarg;
693 if (strchr(cctx.username, '*') != NULL ||
694 strchr(cctx.username, '?') != NULL) {
695 wildcard_user = cctx.username;
696 cctx.username = NULL;
960 doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx)
967 bool cli = (cctx->conn_type == DOVEADM_CONNECTION_TYPE_CLI);
968 bool tcp_server = (cctx->conn_type == DOVEADM_CONNECTION_TYPE_TCP);
970 cctx->cmd->mail_cmd, cctx->cmd->name, cctx->cmd->usage
980 mctx->cctx = cctx;
986 for(i=0;i<cctx->argc;i++) {
987 const struct doveadm_cmd_param *arg = &cctx->argv[i];
1006 cctx->username = arg->value.v_string;
1017 cctx->username = NULL;