diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-24 10:20:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-24 10:20:07 +0100 |
commit | 8de04f432d2b5bb56a3c278adc7ad007f6474e7d (patch) | |
tree | c14274e7f44658a07f923e534786ae9f78b697d5 /src/libmime/mime_encoding.c | |
parent | 2c5620474d0d07fbe5b4b7418c59b6cd27611a0e (diff) | |
download | rspamd-8de04f432d2b5bb56a3c278adc7ad007f6474e7d.tar.gz rspamd-8de04f432d2b5bb56a3c278adc7ad007f6474e7d.zip |
[Minor] Fix setting utf raw content
Diffstat (limited to 'src/libmime/mime_encoding.c')
-rw-r--r-- | src/libmime/mime_encoding.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 1e284c6c2..0aec2d5c0 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -690,6 +690,7 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task, } else { SET_PART_UTF (text_part); + text_part->utf_raw_content = part_content; rspamd_mime_text_part_ucs_from_utf (task, text_part); rspamd_mime_text_part_normalise (task, text_part); rspamd_mime_text_part_maybe_renormalise (task, text_part); @@ -721,6 +722,8 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task, if (rspamd_mime_charset_utf_check (&charset_tok, part_content->data, part_content->len, !checked)) { + SET_PART_UTF (text_part); + text_part->utf_raw_content = part_content; rspamd_mime_text_part_ucs_from_utf (task, text_part); rspamd_mime_text_part_normalise (task, text_part); rspamd_mime_text_part_maybe_renormalise (task, text_part); |