]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] 'R' flag is for all headers regexp 3261/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Mon, 10 Feb 2020 16:14:44 +0000 (16:14 +0000)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Mon, 10 Feb 2020 16:14:44 +0000 (16:14 +0000)
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

index ea46233ecd04ae63a3f1f6ad4d7e1f839b82c66e..19d15cb539b51f399721de58896c82b255ebc019 100644 (file)
@@ -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
+}