aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 17:59:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 17:59:15 +0000
commit7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6 (patch)
treeb7546db03e84b9be27ae636f7d2ca298104a6fbc /utils
parentc0728b83b8b9a2470e0b4f11d69b41bbd33bfc86 (diff)
downloadrspamd-7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6.tar.gz
rspamd-7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6.zip
[Rework|Minor] Fix utils
Diffstat (limited to 'utils')
-rw-r--r--utils/content_type_bench.c1
-rw-r--r--utils/mime_tool.c7
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,