]> source.dussan.org Git - rspamd.git/commitdiff
* Get message's headers more correctly
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 27 Sep 2010 14:43:36 +0000 (18:43 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 27 Sep 2010 14:43:36 +0000 (18:43 +0400)
src/message.c

index 39910ba7d3ea6699db376a6a6b1766db221d7814..9df569f02933851d69c1a04b336fa3c9fbe20572 100644 (file)
@@ -1077,7 +1077,7 @@ local_message_get_header (memory_pool_t * pool, GMimeMessage * message, const ch
 #else
        GMimeHeaderList                *ls;
 
-       ls = GMIME_OBJECT (message)->headers;
+       ls = g_mime_object_get_header_list (GMIME_OBJECT (message));
        header_iterate (pool, ls, &gret, field);
        if (gret == NULL) {
                /* Try to iterate with mime part headers */