aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 18:18:11 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 18:18:11 +0000
commitafec2172e295e0c0339e92923a29994f9e9c313e (patch)
tree49f941812d14137101bc3cb36955e5b43efbb973 /src/libserver
parentb3f54531f5c182c693727e71952d5bb1c50571a9 (diff)
downloadrspamd-afec2172e295e0c0339e92923a29994f9e9c313e.tar.gz
rspamd-afec2172e295e0c0339e92923a29994f9e9c313e.zip
Set is_spam = true for all but 'no action' or 'greylist'
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/protocol.c2
1 files changed, 1 insertions, 1 deletions
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),