commit bc613d0: [Fix] 'R' flag is for all headers regexp
Anton Yuzhaninov
citrin+git at citrin.ru
Mon Feb 10 18:28:06 UTC 2020
Author: Anton Yuzhaninov
Date: 2020-02-10 16:14:44 +0000
URL: https://github.com/rspamd/rspamd/commit/bc613d0186147bf1eae384f007366ce709662aed (refs/pull/3261/head)
[Fix] 'R' flag is for all headers regexp
According to the documentation R flag is for regexp which applied for
all headers (unencoded):
https://rspamd.com/doc/modules/regexp.html#regular-expressions
---
src/libmime/mime_expressions.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index ea46233ec..19d15cb53 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -380,7 +380,7 @@ rspamd_mime_expr_parse_regexp_atom (rspamd_mempool_t * pool, const gchar *line,
p++;
break;
case 'R':
- result->type = RSPAMD_RE_RAWHEADER;
+ result->type = RSPAMD_RE_ALLHEADER;
p++;
break;
case 'B':
@@ -2328,4 +2328,4 @@ rspamd_has_symbol_expr (struct rspamd_task *task,
}
return FALSE;
-}
\ No newline at end of file
+}
More information about the Commits
mailing list