summaryrefslogtreecommitdiffstats
path: root/utils/mime_tool.c
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/mime_tool.c
parentc0728b83b8b9a2470e0b4f11d69b41bbd33bfc86 (diff)
downloadrspamd-7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6.tar.gz
rspamd-7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6.zip
[Rework|Minor] Fix utils
Diffstat (limited to 'utils/mime_tool.c')
-rw-r--r--utils/mime_tool.c7
1 files changed, 4 insertions, 3 deletions
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,