]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve logging of the invalid charset case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Mar 2020 11:18:20 +0000 (11:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Mar 2020 11:18:20 +0000 (11:18 +0000)
src/libmime/mime_encoding.c

index 47295d95bf83793dbc9386c2200c005c8fa28582..73b68fe0677c72898b917a75733db13e2c80c5f0 100644 (file)
@@ -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;