From: Stephan Bosch Date: Tue, 5 Dec 2017 13:49:17 +0000 (+0100) Subject: lib-smtp: common: Added support for having custom fields in struct smtp_proxy_data. X-Git-Tag: 2.3.0.rc1~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b41f8f926e930bae202a5cccfda3434e7c4c3be;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: common: Added support for having custom fields in struct smtp_proxy_data. --- diff --git a/src/lib-smtp/smtp-common.h b/src/lib-smtp/smtp-common.h index f4d04396e9..8e3d1d0c90 100644 --- a/src/lib-smtp/smtp-common.h +++ b/src/lib-smtp/smtp-common.h @@ -60,6 +60,12 @@ enum smtp_proxy_protocol { SMTP_PROXY_PROTOCOL_LMTP }; +struct smtp_proxy_data_field { + const char *name; + const char *value; +}; +ARRAY_DEFINE_TYPE(smtp_proxy_data_field, struct smtp_proxy_data_field); + struct smtp_proxy_data { /* PROTO */ enum smtp_proxy_protocol proto; @@ -76,6 +82,10 @@ struct smtp_proxy_data { after this many seconds, so it should try to keep lock waits and such lower than this. */ unsigned int timeout_secs; + + /* additional fields */ + const struct smtp_proxy_data_field *extra_fields; + unsigned int extra_fields_count; }; #endif