aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/milter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-27 19:29:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-27 19:29:28 +0100
commit6d34197ef90dcc50a85c5e2029e03ec87a593edb (patch)
treef1b6fb6dbe3918505f73c8a155499e452336be14 /src/libserver/milter.c
parent828094ac8185d00e18e489e6a6f5193cf11db975 (diff)
downloadrspamd-6d34197ef90dcc50a85c5e2029e03ec87a593edb.tar.gz
rspamd-6d34197ef90dcc50a85c5e2029e03ec87a593edb.zip
[Minor] Utilise {rcpt_mailer} macro in milter mode
Issue: #2151
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r--src/libserver/milter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index 010f2215a..3f3772850 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1349,6 +1349,11 @@ rspamd_milter_macro_http (struct rspamd_milter_session *session,
found->begin, found->len);
}
+ IF_MACRO("{rcpt_mailer}") {
+ rspamd_http_message_add_header_len (msg, MAILER_HEADER,
+ found->begin, found->len);
+ }
+
if (milter_ctx->client_ca_name) {
IF_MACRO ("{cert_issuer}") {
rspamd_http_message_add_header_len (msg, CERT_ISSUER_HEADER,