commit db3a824: [Minor] Improve logging of the invalid charset case

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Mar 16 11:21:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-03-16 11:18:20 +0000
URL: https://github.com/rspamd/rspamd/commit/db3a82420612a7173ca173aaad764d01a96da471 (HEAD -> master)

[Minor] Improve logging of the invalid charset case

---
 src/libmime/mime_encoding.c | 5 +++--
 1 file 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;
 


More information about the Commits mailing list