diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-13 17:10:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-13 17:10:52 +0000 |
commit | 3e9f86bda632d9d39cd82541c07419bd920f5cb2 (patch) | |
tree | 3df30188b9be885befdf4ca459ef86457cef26c1 /src/libmime | |
parent | 4f68ea16a3619d2206c652ba8c7c76c4158dcdca (diff) | |
download | rspamd-3e9f86bda632d9d39cd82541c07419bd920f5cb2.tar.gz rspamd-3e9f86bda632d9d39cd82541c07419bd920f5cb2.zip |
[Minor] Split url and email regexps
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/mime_expressions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index 19d15cb53..a0c499882 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -241,6 +241,10 @@ rspamd_parse_long_option (const gchar *start, gsize len, ret = TRUE; a->type = RSPAMD_RE_URL; } + else if (TYPE_CHECK (start, "email", len)) { + ret = TRUE; + a->type = RSPAMD_RE_EMAIL; + } else if (TYPE_CHECK (start, "sa_body", len)) { ret = TRUE; a->type = RSPAMD_RE_SABODY; @@ -1022,6 +1026,7 @@ rspamd_mime_expr_priority (rspamd_expression_atom_t *atom) ret = 100; break; case RSPAMD_RE_URL: + case RSPAMD_RE_EMAIL: ret = 90; break; case RSPAMD_RE_MIME: |