aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/protocol.c')
-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),