]> source.dussan.org Git - rspamd.git/commitdiff
Allow logging of recipients for a message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Nov 2015 14:17:07 +0000 (14:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Nov 2015 14:17:07 +0000 (14:17 +0000)
src/libserver/cfg_file.h
src/libserver/cfg_utils.c

index 6e87acafe3e74bd13e114f9a6c7212c5cc56e658..c70ecddaeef504fdfa917a4b09648b10a74df311 100644 (file)
@@ -180,6 +180,10 @@ enum rspamd_log_format_type {
        RSPAMD_LOG_DNS_REQ,
        RSPAMD_LOG_SMTP_FROM,
        RSPAMD_LOG_MIME_FROM,
+       RSPAMD_LOG_SMTP_RCPT,
+       RSPAMD_LOG_MIME_RCPT,
+       RSPAMD_LOG_SMTP_RCPTS,
+       RSPAMD_LOG_MIME_RCPTS,
        RSPAMD_LOG_TIME_REAL,
        RSPAMD_LOG_TIME_VIRTUAL,
        RSPAMD_LOG_LUA
index acdf8979e1dee46d01e9f67b1c8902808f0abfb3..b85534dd7c0fe4c1a826c1e5a2d9c3ac80caa243 100644 (file)
@@ -346,6 +346,18 @@ rspamd_config_process_var (struct rspamd_config *cfg, const rspamd_ftok_t *var,
        else if (rspamd_ftok_cstr_equal (&tok, "mime_from", TRUE)) {
                type = RSPAMD_LOG_MIME_FROM;
        }
+       else if (rspamd_ftok_cstr_equal (&tok, "smtp_rcpt", TRUE)) {
+               type = RSPAMD_LOG_SMTP_RCPT;
+       }
+       else if (rspamd_ftok_cstr_equal (&tok, "mime_rcpt", TRUE)) {
+               type = RSPAMD_LOG_MIME_RCPT;
+       }
+       else if (rspamd_ftok_cstr_equal (&tok, "smtp_rcpts", TRUE)) {
+               type = RSPAMD_LOG_SMTP_RCPTS;
+       }
+       else if (rspamd_ftok_cstr_equal (&tok, "mime_rcpts", TRUE)) {
+               type = RSPAMD_LOG_MIME_RCPTS;
+       }
        else if (rspamd_ftok_cstr_equal (&tok, "time_real", TRUE)) {
                type = RSPAMD_LOG_TIME_REAL;
        }