diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/content_type_bench.c | 1 | ||||
-rw-r--r-- | utils/mime_tool.c | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/utils/content_type_bench.c b/utils/content_type_bench.c index b6c067c79..634476b64 100644 --- a/utils/content_type_bench.c +++ b/utils/content_type_bench.c @@ -19,6 +19,7 @@ #include "message.h" #include "util.h" #include "content_type.h" +#include <gmime/gmime.h> static gdouble total_time = 0; static gint total_parsed = 0; diff --git a/utils/mime_tool.c b/utils/mime_tool.c index acaf34130..6b3fbccda 100644 --- a/utils/mime_tool.c +++ b/utils/mime_tool.c @@ -22,6 +22,7 @@ #include "task.h" #include "mime_parser.h" #include "unix-std.h" +#include <gmime/gmime.h> #define MODE_NORMAL 0 #define MODE_GMIME 1 @@ -49,9 +50,9 @@ rspamd_show_multipart (struct rspamd_mime_part *part) part->parent_part, &part->ct->type, &part->ct->subtype); - if (part->children) { - for (i = 0; i < part->children->len; i ++) { - cur = g_ptr_array_index (part->children, i); + if (part->specific.mp.children) { + for (i = 0; i < part->specific.mp.children->len; i ++) { + cur = g_ptr_array_index (part->specific.mp.children, i); if (i != 0) { rspamd_printf (", %p{%T/%T}", cur, |