From afec2172e295e0c0339e92923a29994f9e9c313e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 Feb 2016 18:18:11 +0000 Subject: [PATCH] Set is_spam = true for all but 'no action' or 'greylist' --- src/libserver/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index fd9ce5703..80d1f4cd0 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -822,7 +822,7 @@ rspamd_metric_result_ucl (struct rspamd_task *task, &mres->required_score, m); action = mres->action; - is_spam = (action == METRIC_ACTION_REJECT); + is_spam = (action < METRIC_ACTION_GREYLIST); obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_frombool (is_spam), -- 2.39.5