diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-29 15:07:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-29 15:07:26 +0000 |
commit | 36c874383c4c56fb10c737a3f5932abc173080e2 (patch) | |
tree | 2c1114ffa8a658d91a1635df92f704e0e121f9c4 /src/libmime | |
parent | b88b112953e52fef8008216c498bbc2e3bfd0c72 (diff) | |
download | rspamd-36c874383c4c56fb10c737a3f5932abc173080e2.tar.gz rspamd-36c874383c4c56fb10c737a3f5932abc173080e2.zip |
[Feature] Add more words regexp classes
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/mime_expressions.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index c6d258c49..535b8a124 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -243,6 +243,14 @@ rspamd_parse_long_option (const gchar *start, gsize len, ret = TRUE; a->type = RSPAMD_RE_WORDS; } + else if (TYPE_CHECK (start, "raw_words", len)) { + ret = TRUE; + a->type = RSPAMD_RE_RAWWORDS; + } + else if (TYPE_CHECK (start, "stem_words", len)) { + ret = TRUE; + a->type = RSPAMD_RE_STEMWORDS; + } else if (TYPE_CHECK (start, "selector", len)) { ret = TRUE; a->type = RSPAMD_RE_SELECTOR; |