aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-30 13:31:55 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-30 13:32:20 +0000
commitbd63ea11af3eb8e6b6afefa5573e8d1a54df87da (patch)
tree290510a411193d259f9803969ef938f7d9da22d9 /src
parentde1628b74e7fa22f07cb601ea601f90d5d0c5478 (diff)
downloadrspamd-bd63ea11af3eb8e6b6afefa5573e8d1a54df87da.tar.gz
rspamd-bd63ea11af3eb8e6b6afefa5573e8d1a54df87da.zip
[Minor] Core: Treat meaningless actions as ham
Diffstat (limited to 'src')
-rw-r--r--src/libserver/cfg_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d288c8e06..cc07c4007 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -144,10 +144,10 @@ rspamd_config_new (enum rspamd_config_init_flags flags)
action->action_type = i;
if (i == METRIC_ACTION_SOFT_REJECT) {
- action->flags |= RSPAMD_ACTION_NO_THRESHOLD;
+ action->flags |= RSPAMD_ACTION_NO_THRESHOLD|RSPAMD_ACTION_HAM;
}
else if (i == METRIC_ACTION_GREYLIST) {
- action->flags |= RSPAMD_ACTION_THRESHOLD_ONLY;
+ action->flags |= RSPAMD_ACTION_THRESHOLD_ONLY|RSPAMD_ACTION_HAM;
}
else if (i == METRIC_ACTION_NOACTION) {
action->flags |= RSPAMD_ACTION_HAM;