Lines Matching defs:dctx
477 struct mail_deliver_context dctx;
567 i_zero(&dctx);
568 dctx.session = session;
569 dctx.pool = session->pool;
570 dctx.set = lda_set;
571 dctx.smtp_set = smtp_set;
572 dctx.session_id = rcpt->session_id;
573 dctx.src_mail = src_mail;
576 dctx.mail_from = trans->mail_from;
577 smtp_params_mail_copy(dctx.pool,
578 &dctx.mail_params, &trans->params);
581 dctx.rcpt_user = rcpt_user;
582 smtp_params_rcpt_copy(dctx.pool,
583 &dctx.rcpt_params, &trcpt->params);
584 if (dctx.rcpt_params.orcpt.addr == NULL &&
585 *dctx.set->lda_original_recipient_header != '\0') {
586 dctx.rcpt_params.orcpt.addr =
588 dctx.set->lda_original_recipient_header);
590 if (dctx.rcpt_params.orcpt.addr == NULL)
591 dctx.rcpt_params.orcpt.addr = rcpt_to;
592 dctx.rcpt_to = rcpt_to;
595 dctx.rcpt_default_mailbox = "INBOX";
598 dctx.rcpt_default_mailbox =
602 dctx.save_dest_mail = array_count(&trans->rcpt_to) > 1 &&
605 dctx.session_time_msecs =
608 dctx.delivery_time_started = delivery_time_started;
610 if (mail_deliver(&dctx, &storage) == 0) {
611 if (dctx.dest_mail != NULL) {
613 local->first_saved_mail = dctx.dest_mail;
619 } else if (dctx.tempfail_error != NULL) {
623 dctx.tempfail_error);