summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-16 11:18:20 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-16 11:18:20 +0000
commitdb3a82420612a7173ca173aaad764d01a96da471 (patch)
tree324da66632e4dba7a96a13ebc02ce0c60513d19f
parent195e79d69ba3b0ab8b21e9f81eb76ee98e3858f6 (diff)
downloadrspamd-db3a82420612a7173ca173aaad764d01a96da471.tar.gz
rspamd-db3a82420612a7173ca173aaad764d01a96da471.zip
[Minor] Improve logging of the invalid charset case
-rw-r--r--src/libmime/mime_encoding.c5
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;