]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Core: Treat meaningless actions as ham
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 13:31:55 +0000 (13:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 13:32:20 +0000 (13:32 +0000)
src/libserver/cfg_utils.c

index d288c8e0611e4632c75453d9bf3ea8ebde60612d..cc07c4007780c837d762e66ccccb45cd87b30c47 100644 (file)
@@ -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;