From: Vsevolod Stakhov Date: Thu, 18 Feb 2016 18:18:11 +0000 (+0000) Subject: Set is_spam = true for all but 'no action' or 'greylist' X-Git-Tag: 1.2.0~203 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=afec2172e295e0c0339e92923a29994f9e9c313e;p=rspamd.git Set is_spam = true for all but 'no action' or 'greylist' --- 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),