]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: Use the recipient index in the server recipient object rather than the...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 7 Oct 2018 19:24:43 +0000 (21:24 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:41:02 +0000 (15:41 +0200)
src/submission/submission-recipient.c
src/submission/submission-recipient.h

index 0119d12328efccf77a386ad2328010cf1a9b8666..57e2cfae5f44b03d1ebd69412449c68b8cde73bf 100644 (file)
@@ -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) {
index f8c64921d511be002fa6084567994f4c998ac9d3..6ff3cfbf2d32c55ce1b63132c3dc8232ff5b746f 100644 (file)
@@ -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;
 };