aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Kueck <bqobccy6ejnq2bqvmebqiwqha4cs4@protected32.unixadm.org>2017-11-30 15:42:39 +0100
committerPhilippe Kueck <bqobccy6ejnq2bqvmebqiwqha4cs4@protected32.unixadm.org>2017-11-30 15:42:39 +0100
commitfc3bb79d34d9bccca7028c55ab63b1d362651b2a (patch)
tree04270cd50b5343aadaaeb202cda3c019e40a94ec
parente5e9570597dbf19c3c8f620180e38e6b213afc1b (diff)
downloadrspamd-fc3bb79d34d9bccca7028c55ab63b1d362651b2a.tar.gz
rspamd-fc3bb79d34d9bccca7028c55ab63b1d362651b2a.zip
get authenticated user from certificate subject, too
-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 c201e2ee9..1b3e4de7e 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1333,6 +1333,11 @@ rspamd_milter_macro_http (struct rspamd_milter_session *session,
found->begin, found->len);
}
+ IF_MACRO("{cert_subject}") {
+ rspamd_http_message_add_header_len (msg, USER_HEADER,
+ found->begin, found->len);
+ }
+
if (!session->hostname || session->hostname->len == 0) {
IF_MACRO("{client_name}") {
rspamd_http_message_add_header_len (msg, HOSTNAME_HEADER,