]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Save multipart boundaries
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Apr 2016 14:57:41 +0000 (15:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Apr 2016 14:57:41 +0000 (15:57 +0100)
src/libmime/message.c
src/libmime/message.h

index 454a635dcc83954f00255845c961904fa52e64f2..000b50b78bd95a7347f72c9d8b8495a6ec0e96b7 100644 (file)
@@ -1362,6 +1362,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data)
                mime_part->parent = md->parent;
                mime_part->filename = NULL;
                mime_part->mime = part;
+               mime_part->boundary = g_mime_multipart_get_boundary (GMIME_MULTIPART (part));
 
                debug_task ("found part with content-type: %s/%s",
                                type->type,
index ce4d5250fccdad446c5400363a2f02d8e726170d..367f0000c986263bb70ff3d72af0473b67bce97f 100644 (file)
@@ -22,6 +22,7 @@ struct mime_part {
        gchar *raw_headers_str;
        gchar *checksum;
        const gchar *filename;
+       const gchar *boundary;
 };
 
 #define RSPAMD_MIME_PART_FLAG_UTF (1 << 0)