diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-06 12:36:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-06 12:38:28 +0000 |
commit | f08fd055ce127140554d3a50f4feffdf0c803154 (patch) | |
tree | 23a762126d2693907da519f49ff63d2b0f144be6 /src/libmime/message.h | |
parent | 4240400bc04d6c06ce5e1cebdbd77441ff2fb35f (diff) | |
download | rspamd-f08fd055ce127140554d3a50f4feffdf0c803154.tar.gz rspamd-f08fd055ce127140554d3a50f4feffdf0c803154.zip |
[Feature] Enchance text_part:get_content method
This method now supports otional `type` attribute which could be
following:
- `content` (default): utf8 content with HTML tags stripped and newlines preserved
- `content_oneline`: utf8 content with HTML tags and newlines stripped
- `raw`: raw content, not mime decoded nor utf8 converted
- `raw_parsed`: raw content, mime decoded, not utf8 converted
- `raw_utf`: raw content, mime decoded, utf8 converted (but with HTML tags and newlines)
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r-- | src/libmime/message.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h index 8c0f919ea..15fcfcccc 100644 --- a/src/libmime/message.h +++ b/src/libmime/message.h @@ -82,6 +82,7 @@ struct rspamd_mime_text_part { rspamd_ftok_t raw; rspamd_ftok_t parsed; GByteArray *content; + GByteArray *utf_raw_content; GByteArray *stripped_content; GPtrArray *newlines; /**< positions of newlines in text */ struct html_content *html; |