diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-20 16:46:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-20 17:14:17 +0000 |
commit | 88db18b733523001b81b1a66ffd33ecf41af1c55 (patch) | |
tree | 87e6a399e0c337f8a396106cb497d6b6dd522ea6 /src/libmime/mime_headers.h | |
parent | 8add4deb4fe88fe04b4469601bbe477c96cefdf3 (diff) | |
download | rspamd-88db18b733523001b81b1a66ffd33ecf41af1c55.tar.gz rspamd-88db18b733523001b81b1a66ffd33ecf41af1c55.zip |
[Minor] Add function to encode mime headers
Diffstat (limited to 'src/libmime/mime_headers.h')
-rw-r--r-- | src/libmime/mime_headers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libmime/mime_headers.h b/src/libmime/mime_headers.h index 4d2597c84..1310c0b75 100644 --- a/src/libmime/mime_headers.h +++ b/src/libmime/mime_headers.h @@ -58,4 +58,12 @@ void rspamd_mime_headers_process (struct rspamd_task *task, GHashTable *target, gchar * rspamd_mime_header_decode (rspamd_mempool_t *pool, const gchar *in, gsize inlen); +/** + * Encode mime header if needed + * @param in + * @param len + * @return newly allocated encoded header + */ +gchar * rspamd_mime_header_encode (const gchar *in, gsize len); + #endif /* SRC_LIBMIME_MIME_HEADERS_H_ */ |