diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-18 13:35:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-18 13:35:05 +0100 |
commit | de7ac4e37284fcd241060213619297df41a71dce (patch) | |
tree | eebb222e637b021c78888a84f6022a3231aba0d6 /src/libmime/mime_headers.h | |
parent | f6321fbd323034d9763e53a56af014872a8a625a (diff) | |
download | rspamd-de7ac4e37284fcd241060213619297df41a71dce.tar.gz rspamd-de7ac4e37284fcd241060213619297df41a71dce.zip |
[Minor] Add a simple routine to remove smtp comments in place
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 ad8f1b68f..f24b0d6c6 100644 --- a/src/libmime/mime_headers.h +++ b/src/libmime/mime_headers.h @@ -206,6 +206,14 @@ struct rspamd_mime_headers_table * rspamd_message_headers_ref (struct rspamd_mim */ struct rspamd_mime_headers_table* rspamd_message_headers_new (void); +/** + * Strip rfc822 CFWS sequences from a string in place + * @param input input + * @param len length of the input + * @return new length of the input + */ +gsize rspamd_strip_smtp_comments_inplace (gchar *input, gsize len); + #ifdef __cplusplus } #endif |