From: Stephan Bosch Date: Sun, 7 Oct 2018 19:24:43 +0000 (+0200) Subject: submission: Use the recipient index in the server recipient object rather than the... X-Git-Tag: 2.3.9~1209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbcdb5965c9847e9d501289e1aeff6c1149ef0d3;p=thirdparty%2Fdovecot%2Fcore.git submission: Use the recipient index in the server recipient object rather than the submission recipient. --- diff --git a/src/submission/submission-recipient.c b/src/submission/submission-recipient.c index 0119d12328..57e2cfae5f 100644 --- a/src/submission/submission-recipient.c +++ b/src/submission/submission-recipient.c @@ -34,7 +34,7 @@ submission_recipient_create(struct client *client, } static void -submission_recipient_approved(struct smtp_server_recipient *rcpt, +submission_recipient_approved(struct smtp_server_recipient *rcpt ATTR_UNUSED, struct submission_recipient *srcpt) { struct submission_backend *backend = srcpt->backend; @@ -42,8 +42,6 @@ submission_recipient_approved(struct smtp_server_recipient *rcpt, struct submission_backend *const *bknd_idx; bool backend_found = FALSE; - srcpt->index = rcpt->index; - array_append(&client->rcpt_to, &srcpt, 1); array_foreach(&client->rcpt_backends, bknd_idx) { diff --git a/src/submission/submission-recipient.h b/src/submission/submission-recipient.h index f8c64921d5..6ff3cfbf2d 100644 --- a/src/submission/submission-recipient.h +++ b/src/submission/submission-recipient.h @@ -9,8 +9,6 @@ struct submission_recipient { struct submission_backend *backend; - unsigned int index; - /* Module-specific contexts. */ ARRAY(union submission_recipient_module_context *) module_contexts; };