From 3f29049a674dcc533bb735114245bdc032dd62ab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 1 Jun 2018 17:22:17 +0100 Subject: [PATCH] [Fix] Fix '~' behaviour in composites --- src/libserver/composites.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/composites.c b/src/libserver/composites.c index a90b5c032..f3dc7a956 100644 --- a/src/libserver/composites.c +++ b/src/libserver/composites.c @@ -266,7 +266,7 @@ rspamd_composite_expr_process (gpointer input, rspamd_expression_atom_t *atom) t = *beg; if (t == '~') { - nrd->action &= ~RSPAMD_COMPOSITE_REMOVE_WEIGHT; + nrd->action &= ~RSPAMD_COMPOSITE_REMOVE_SYMBOL; } else if (t == '-') { nrd->action &= ~(RSPAMD_COMPOSITE_REMOVE_WEIGHT| -- 2.39.5