commit bd63ea1: [Minor] Core: Treat meaningless actions as ham

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jan 30 13:35:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-30 13:31:55 +0000
URL: https://github.com/rspamd/rspamd/commit/bd63ea11af3eb8e6b6afefa5573e8d1a54df87da (HEAD -> master)

[Minor] Core: Treat meaningless actions as ham

---
 src/libserver/cfg_utils.c | 4 ++--
 1 file 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;


More information about the Commits mailing list