diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-16 15:22:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-16 15:22:48 +0100 |
commit | acc4b6480944600f47dcc0458214afe5b569ab33 (patch) | |
tree | a1b5d18ec7356df6646e5ecf740d0e3fcb717482 /src/libutil | |
parent | daa4ca9561c5a06a99b1995793f3511271bf4cc2 (diff) | |
download | rspamd-acc4b6480944600f47dcc0458214afe5b569ab33.tar.gz rspamd-acc4b6480944600f47dcc0458214afe5b569ab33.zip |
[Project] Add process exceptions for invisible text
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index e947b0a54..9ee8a09ae 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -21,6 +21,22 @@ extern "C" { struct rspamd_config; +enum rspamd_exception_type { + RSPAMD_EXCEPTION_NEWLINE = 0, + RSPAMD_EXCEPTION_URL, + RSPAMD_EXCEPTION_GENERIC, + RSPAMD_EXCEPTION_INVISIBLE, +}; +/** + * Structure to point exception in text from processing + */ +struct rspamd_process_exception { + goffset pos; + guint len; + gpointer ptr; + enum rspamd_exception_type type; +}; + /** * Create generic socket * @param af address family |