diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-14 15:15:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-14 15:15:36 +0100 |
commit | 88e8dc5fcb2a501728c0558501ed2345aff7a94f (patch) | |
tree | b9ba5b3283762d14c295d91e087cb6ad0d1ba0ec /src/libmime/mime_headers.h | |
parent | 943a36c4a6f3ce6f3e37ddd52422094d1e47d23b (diff) | |
download | rspamd-88e8dc5fcb2a501728c0558501ed2345aff7a94f.tar.gz rspamd-88e8dc5fcb2a501728c0558501ed2345aff7a94f.zip |
[Minor] Add method to get count of the headers
Diffstat (limited to 'src/libmime/mime_headers.h')
-rw-r--r-- | src/libmime/mime_headers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmime/mime_headers.h b/src/libmime/mime_headers.h index 07a64c31e..7174f9e8f 100644 --- a/src/libmime/mime_headers.h +++ b/src/libmime/mime_headers.h @@ -161,6 +161,13 @@ struct rspamd_mime_headers_table * rspamd_message_headers_ref (struct rspamd_mim struct rspamd_mime_headers_table* rspamd_message_headers_new (void); /** + * Returns size for a headers table + * @param hdrs + * @return + */ +gsize rspamd_mime_headers_count (struct rspamd_mime_headers_table *hdrs); + +/** * Strip rfc822 CFWS sequences from a string in place * @param input input * @param len length of the input |