aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-25 19:34:09 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-25 19:34:09 +0400
commit054e575684fe7cc8e4d753b2c460193a21bae6a4 (patch)
tree93c779335d8d20b8b9d98781b7d77105efaabcb4 /src/message.c
parent34ae83f0151a3fd31f4c045968defa39a2c40985 (diff)
downloadrspamd-054e575684fe7cc8e4d753b2c460193a21bae6a4.tar.gz
rspamd-054e575684fe7cc8e4d753b2c460193a21bae6a4.zip
* More debug
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;