commit e77e2d4: [Minor] Further priorities adjustment
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Aug 29 19:00:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-28 11:19:14 +0100
URL: https://github.com/rspamd/rspamd/commit/e77e2d42f4ee816c2eb859295e8ee8608f0bff93
[Minor] Further priorities adjustment
---
src/libmime/mime_expressions.c | 6 +++---
1 file 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;
}
More information about the Commits
mailing list