}
void lmtp_recipient_finish(struct lmtp_recipient *lrcpt,
- struct smtp_server_recipient *trcpt,
+ struct smtp_server_recipient *rcpt,
unsigned int index)
{
- trcpt->context = lrcpt;
+ rcpt->context = lrcpt;
- lrcpt->path = trcpt->path;
- lrcpt->rcpt = trcpt;
+ lrcpt->path = rcpt->path;
+ lrcpt->rcpt = rcpt;
lrcpt->index = index;
lrcpt->rcpt_cmd = NULL;
}
static void lmtp_local_rcpt_finished(
struct smtp_server_cmd_ctx *cmd,
struct smtp_server_transaction *trans,
- struct smtp_server_recipient *trcpt,
+ struct smtp_server_recipient *rcpt,
unsigned int index)
{
- struct lmtp_local_recipient *llrcpt = trcpt->context;
+ struct lmtp_local_recipient *llrcpt = rcpt->context;
struct client *client = llrcpt->rcpt.client;
smtp_server_command_remove_hook(
return;
}
- lmtp_recipient_finish(&llrcpt->rcpt, trcpt, index);
+ lmtp_recipient_finish(&llrcpt->rcpt, rcpt, index);
/* resolve duplicate recipient */
llrcpt->duplicate = (struct lmtp_local_recipient *)
struct mail_deliver_session *session)
{
struct client *client = local->client;
- struct smtp_server_recipient *trcpt = llrcpt->rcpt.rcpt;
- struct smtp_address *rcpt_to = trcpt->path;
+ struct smtp_server_recipient *rcpt = llrcpt->rcpt.rcpt;
+ struct smtp_address *rcpt_to = rcpt->path;
unsigned int rcpt_idx = llrcpt->rcpt.index;
struct mail_storage_service_user *service_user = llrcpt->service_user;
struct mail_deliver_context dctx;
/* RCPT TO */
dctx.rcpt_user = rcpt_user;
- smtp_params_rcpt_copy(dctx.pool,
- &dctx.rcpt_params, &trcpt->params);
+ smtp_params_rcpt_copy(dctx.pool, &dctx.rcpt_params, &rcpt->params);
if (dctx.rcpt_params.orcpt.addr == NULL &&
*dctx.set->lda_original_recipient_header != '\0') {
dctx.rcpt_params.orcpt.addr =
static void
lmtp_proxy_rcpt_finished(struct smtp_server_cmd_ctx *cmd,
struct smtp_server_transaction *trans ATTR_UNUSED,
- struct smtp_server_recipient *trcpt,
+ struct smtp_server_recipient *rcpt,
unsigned int index)
{
- struct lmtp_proxy_recipient *lprcpt = trcpt->context;
+ struct lmtp_proxy_recipient *lprcpt = rcpt->context;
struct client *client = lprcpt->rcpt.client;
if (lprcpt->rcpt.rcpt_cmd != NULL) {
return;
}
- lmtp_recipient_finish(&lprcpt->rcpt, trcpt, index);
+ lmtp_recipient_finish(&lprcpt->rcpt, rcpt, index);
/* add to local recipients */
array_append(&client->proxy->rcpt_to, &lprcpt, 1);