]> source.dussan.org Git - rspamd.git/commitdiff
Set is_spam = true for all but 'no action' or 'greylist'
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 Feb 2016 18:18:11 +0000 (18:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 Feb 2016 18:18:11 +0000 (18:18 +0000)
src/libserver/protocol.c

index fd9ce5703c1a6d14a9ef2dd0dc99294ff63baf56..80d1f4cd0714f8956e601b6a8f1247761d8d6921 100644 (file)
@@ -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),