aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 2c53deca1..be39bbb84 100644
--- a/src/message.c
+++ b/src/message.c
@@ -504,7 +504,7 @@ convert_text_to_utf (struct worker_task *task, GByteArray * part_content, GMimeC
}
if (g_ascii_strcasecmp (charset, "utf-8") == 0 || g_ascii_strcasecmp (charset, "utf8") == 0) {
- text_part->is_raw = TRUE;
+ text_part->is_raw = FALSE;
return part_content;
}
@@ -1040,16 +1040,19 @@ local_message_get_header (memory_pool_t * pool, GMimeMessage * message, const ch
return NULL;
}
+ msg_debug ("iterate over headers to find header %s", field);
h = GMIME_OBJECT (message)->headers->headers;
header_iterate (pool, h, &gret, field);
if (gret == NULL) {
/* Try to iterate with mime part headers */
+ msg_debug ("iterate over headers of mime part to find header %s", field);
part = g_mime_message_get_mime_part (message);
if (part) {
h = part->headers->headers;
header_iterate (pool, h, &gret, field);
if (gret == NULL && GMIME_IS_MULTIPART (part)) {
+ msg_debug ("iterate over headers of each multipart's subparts %s", field);
g_mime_multipart_foreach (GMIME_MULTIPART (part), multipart_iterate, &cb);
if (cb.ret != NULL) {
gret = cb.ret;