From: Vsevolod Stakhov Date: Mon, 4 Jul 2016 15:46:20 +0000 (+0100) Subject: [Fix] Include some more information about archives X-Git-Tag: 1.3.0~180 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70a2c482c16fb3a1486b61fae2fa63422b8749f8;p=rspamd.git [Fix] Include some more information about archives --- diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 2de9d7176..9a9d1da3a 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -141,6 +141,8 @@ rspamd_archive_process_zip (struct rspamd_task *task, part->flags |= RSPAMD_MIME_PART_ARCHIVE; part->specific_data = arch; + arch->archive_name = part->filename; + arch->size = part->content->len; } void diff --git a/src/libmime/archives.h b/src/libmime/archives.h index 917a37a70..3e8c8a46c 100644 --- a/src/libmime/archives.h +++ b/src/libmime/archives.h @@ -25,6 +25,8 @@ enum rspamd_archive_type { struct rspamd_archive { enum rspamd_archive_type type; + const gchar *archive_name; + gsize size; GPtrArray *files; /* Array of GStrings */ };