diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-16 11:18:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-16 11:18:20 +0000 |
commit | db3a82420612a7173ca173aaad764d01a96da471 (patch) | |
tree | 324da66632e4dba7a96a13ebc02ce0c60513d19f | |
parent | 195e79d69ba3b0ab8b21e9f81eb76ee98e3858f6 (diff) | |
download | rspamd-db3a82420612a7173ca173aaad764d01a96da471.tar.gz rspamd-db3a82420612a7173ca173aaad764d01a96da471.zip |
[Minor] Improve logging of the invalid charset case
-rw-r--r-- | src/libmime/mime_encoding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 47295d95b..73b68fe06 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -741,8 +741,9 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task, } if (text_part->real_charset == NULL) { - msg_info_task ("<%s>: has invalid charset; original: %T", - MESSAGE_FIELD_CHECK (task, message_id), &part->ct->charset); + msg_info_task ("<%s>: has invalid charset; original charset: %T; Content-Type: \"%s\"", + MESSAGE_FIELD_CHECK (task, message_id), &part->ct->charset, + part->ct->cpy); SET_PART_RAW (text_part); text_part->utf_raw_content = part_content; |