summaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_encoding.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-03 17:19:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-03 17:19:47 +0000
commit626107bb0f5593506230940a7d9b53d1b5f06d99 (patch)
tree592a45c9e93b664cf45d7269cb212cc31768e639 /src/libmime/mime_encoding.c
parent3d0dd27030df359f17181c5f926fb500c119a962 (diff)
downloadrspamd-626107bb0f5593506230940a7d9b53d1b5f06d99.tar.gz
rspamd-626107bb0f5593506230940a7d9b53d1b5f06d99.zip
[Minor] Fix a455c6542212948969b6c115344e9d059606407a missing part
Diffstat (limited to 'src/libmime/mime_encoding.c')
-rw-r--r--src/libmime/mime_encoding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c
index a91447ab6..47295d95b 100644
--- a/src/libmime/mime_encoding.c
+++ b/src/libmime/mime_encoding.c
@@ -659,6 +659,10 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task,
rspamd_ftok_t charset_tok;
struct rspamd_mime_part *part = text_part->mime_part;
+ if (rspamd_str_has_8bit (text_part->raw.begin, text_part->raw.len)) {
+ text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_8BIT_RAW;
+ }
+
/* Allocate copy storage */
part_content = g_byte_array_sized_new (text_part->parsed.len);
memcpy (part_content->data, text_part->parsed.begin, text_part->parsed.len);