diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 16:56:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 16:56:45 +0000 |
commit | b279f5c311ad4a454f9aef1f373d88bd2aed9b81 (patch) | |
tree | ed5d27f9aaf2e1954cd0d195d61f88ac676c264a /src/libserver/re_cache.h | |
parent | c2603043a10ba22dca7f80928a87a544d0f4e573 (diff) | |
download | rspamd-b279f5c311ad4a454f9aef1f373d88bd2aed9b81.tar.gz rspamd-b279f5c311ad4a454f9aef1f373d88bd2aed9b81.zip |
Implement real checks in re_cache
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r-- | src/libserver/re_cache.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h index 0cc77eae1..ade0a1164 100644 --- a/src/libserver/re_cache.h +++ b/src/libserver/re_cache.h @@ -33,6 +33,7 @@ struct rspamd_re_runtime; enum rspamd_re_type { RSPAMD_RE_HEADER, + RSPAMD_RE_RAWHEADER, RSPAMD_RE_MIME, RSPAMD_RE_URL, RSPAMD_RE_BODY @@ -72,13 +73,17 @@ struct rspamd_re_runtime* rspamd_re_cache_runtime_new (struct rspamd_re_cache *c * @param type type of object * @param type_data associated data with the type (e.g. header name) * @param datalen associated data length + * @param is_strong use case sensitive match when looking for headers + * @param is_multiple return multiple possible occurrences of the specified re */ -gboolean rspamd_re_cache_process (struct rspamd_task *task, +gint rspamd_re_cache_process (struct rspamd_task *task, struct rspamd_re_runtime *rt, rspamd_regexp_t *re, enum rspamd_re_type type, gpointer type_data, - gsize datalen); + gsize datalen, + gboolean is_strong, + gboolean is_multiple); /** * Destroy runtime data |