aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_encoding.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-12 10:45:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-12 15:18:17 +0100
commited3e23421f58da0cdf9938cbe3c72de95752c80f (patch)
tree2e78606e9e7ac39bd2722effd322da400f3f7df7 /src/libmime/mime_encoding.c
parent5f1ac2f30bae037c83b60704a6de4506f722ebfd (diff)
downloadrspamd-ed3e23421f58da0cdf9938cbe3c72de95752c80f.tar.gz
rspamd-ed3e23421f58da0cdf9938cbe3c72de95752c80f.zip
[Project] Adopt libmime code
Diffstat (limited to 'src/libmime/mime_encoding.c')
-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 8dc7da12e..4622ee032 100644
--- a/src/libmime/mime_encoding.c
+++ b/src/libmime/mime_encoding.c
@@ -667,7 +667,8 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task,
}
if (charset == NULL) {
- msg_info_task ("<%s>: has invalid charset", task->message_id);
+ msg_info_task ("<%s>: has invalid charset",
+ MESSAGE_FIELD (task, message_id));
SET_PART_RAW (text_part);
text_part->utf_raw_content = part_content;
@@ -690,7 +691,7 @@ rspamd_mime_text_part_maybe_convert (struct rspamd_task *task,
if (!rspamd_mime_text_part_utf8_convert (task, text_part,
part_content, charset, &err)) {
msg_warn_task ("<%s>: cannot convert from %s to utf8: %s",
- task->message_id,
+ MESSAGE_FIELD (task, message_id),
charset,
err ? err->message : "unknown problem");
SET_PART_RAW (text_part);