]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: lmtp-local - Always add RCPT index to session ID for delivery.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 1 Oct 2021 22:21:06 +0000 (00:21 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 6 Oct 2021 21:58:03 +0000 (21:58 +0000)
Even when it is 1.

src/lmtp/lmtp-local.c

index 8e6b8bd412243c898e48fce3868c70545637d453..f64d368da4bae5d3bb9bc09e940a10f7efc68d2a 100644 (file)
@@ -303,12 +303,8 @@ int lmtp_local_rcpt(struct client *client, struct smtp_server_cmd_ctx *cmd,
        /* Use a unique session_id for each mail delivery. This is especially
           important for stats process to not see duplicate sessions. */
        client->state.session_id_seq++;
-       if (client->state.session_id_seq == 1)
-               session_id = trans->id;
-       else {
-               session_id = t_strdup_printf("%s:%u",
-                       trans->id, client->state.session_id_seq);
-       }
+       session_id = t_strdup_printf("%s:%u",
+                                    trans->id, client->state.session_id_seq);
 
        i_zero(&input);
        input.module = input.service = "lmtp";