diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-30 15:57:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-30 15:57:58 +0100 |
commit | 800399108d67878a6d52db6c3cb28d15e01ccc2a (patch) | |
tree | 0b6d3ba9ee9e291f0ef8477aac96c18d7267aaa2 /src/libutil/str_util.h | |
parent | 3f3ff6c3150ea10058fb804275111f0d4f051bf1 (diff) | |
download | rspamd-800399108d67878a6d52db6c3cb28d15e01ccc2a.tar.gz rspamd-800399108d67878a6d52db6c3cb28d15e01ccc2a.zip |
Add routine to find end of headers position in mime messages.
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 3babc71f9..b6c8b2981 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -183,4 +183,13 @@ GString *rspamd_header_value_fold (const gchar *name, goffset rspamd_substring_search (const gchar *in, gsize inlen, const gchar *srch, gsize srchlen); + +/** + * Search for end-of-headers mark in the input string. Returns position just after + * the last header in message (but before the last newline character). + * Hence, to obtain the real EOH position, it is also required to skip + * space characters + */ +goffset rspamd_string_find_eoh (GString *input); + #endif /* SRC_LIBUTIL_STR_UTIL_H_ */ |