From 054e575684fe7cc8e4d753b2c460193a21bae6a4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 25 Jul 2010 19:34:09 +0400 Subject: * More debug --- src/message.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/message.c') 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; -- cgit v1.2.3