summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-25 20:15:29 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-25 20:15:29 +0400
commit59822ebf58a3bf9f0a3bb97150206013be3b43d7 (patch)
treed08236df32ec8742c3ca2b6097de0977aa893ace /src/message.c
parent671bbfa9cc85a625df33d6384a3179ce076765b9 (diff)
downloadrspamd-59822ebf58a3bf9f0a3bb97150206013be3b43d7.tar.gz
rspamd-59822ebf58a3bf9f0a3bb97150206013be3b43d7.zip
* Add ability to extract filename and size of images from lua
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index ad730d360..2491ddfc0 100644
--- a/src/message.c
+++ b/src/message.c
@@ -709,6 +709,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data)
mime_part->type = type;
mime_part->content = part_content;
mime_part->parent = task->parser_parent_part;
+ mime_part->filename = g_mime_part_get_filename (GMIME_PART (part));
/* Extract checksums for some types */
if (g_mime_content_type_is_type (type, "image", "*") && part_content->len > 0) {
mime_part->checksum = g_compute_checksum_for_data (G_CHECKSUM_MD5, part_content->data, part_content->len);