]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-common - Add SESSION field to proxy data.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 1 Oct 2021 22:15:07 +0000 (00:15 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 6 Oct 2021 21:58:03 +0000 (21:58 +0000)
src/lib-smtp/smtp-common.c
src/lib-smtp/smtp-common.h

index ec7b8a81b311441ceffece06df3357ac3fe256b6..177116911f7b7f5a28277761d5383d49ed6bcd4e 100644 (file)
@@ -80,6 +80,8 @@ void smtp_proxy_data_merge(pool_t pool, struct smtp_proxy_data *dst,
                dst->helo = p_strdup(pool, src->helo);
        if (src->login != NULL && *src->login != '\0')
                dst->login = p_strdup(pool, src->login);
+       if (src->session != NULL && *src->session != '\0')
+               dst->session = p_strdup(pool, src->session);
        if (src->ttl_plus_1 > 0)
                dst->ttl_plus_1 = src->ttl_plus_1;
        if (src->timeout_secs > 0)
index 747da2a268f51c5ed442f59cbb022fa15c835a11..2237d3762acc2e4c431db1911d884cf3e7d8ee3a 100644 (file)
@@ -88,6 +88,8 @@ struct smtp_proxy_data {
        in_port_t source_port;
        /* HELO, LOGIN */
        const char *helo, *login;
+       /* SESSION */
+       const char *session;
 
        /* TTL: send as this -1, so the default 0 means "don't send it" */
        unsigned int ttl_plus_1;