aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-14 14:17:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-14 14:17:07 +0000
commitb2dd82531c75b396dfffd1814bb33987f18adfe4 (patch)
treeb656e33a05ecff9ffd3944404253b9e60195ac93 /src/libserver/cfg_utils.c
parente99a2a605b28fb194e993b96977890237f0d5d39 (diff)
downloadrspamd-b2dd82531c75b396dfffd1814bb33987f18adfe4.tar.gz
rspamd-b2dd82531c75b396dfffd1814bb33987f18adfe4.zip
Allow logging of recipients for a message
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index acdf8979e..b85534dd7 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -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;
}