aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-28 11:19:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-28 11:19:14 +0100
commite77e2d42f4ee816c2eb859295e8ee8608f0bff93 (patch)
tree9f7b0e29d3958880708e0a91cf712281d1caebe0 /src/libmime/mime_expressions.c
parent4685cc5b83bc5240aa15e77b6314bdda8853cb8a (diff)
downloadrspamd-e77e2d42f4ee816c2eb859295e8ee8608f0bff93.tar.gz
rspamd-e77e2d42f4ee816c2eb859295e8ee8608f0bff93.zip
[Minor] Further priorities adjustment
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index dfeeaf9ac..1fc445c81 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1081,13 +1081,13 @@ rspamd_mime_expr_priority (rspamd_expression_atom_t *atom)
break;
case RSPAMD_RE_MIME:
case RSPAMD_RE_RAWMIME:
+ ret = RSPAMD_EXPRESSION_MAX_PRIORITY - RSPAMD_EXPRESSION_MAX_PRIORITY / 2;
+ break;
case RSPAMD_RE_WORDS:
case RSPAMD_RE_RAWWORDS:
case RSPAMD_RE_STEMWORDS:
- ret = RSPAMD_EXPRESSION_MAX_PRIORITY - RSPAMD_EXPRESSION_MAX_PRIORITY / 2;
- break;
default:
- /* For message regexp */
+ /* For expensive regexps */
ret = 0;
break;
}