diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-27 17:33:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-27 17:33:09 +0400 |
commit | e43699510542c7e4f720b6fc53e2efb76a7d57cd (patch) | |
tree | 27bce4b1c33628027ed33759eb2735d1ca8a8852 /src/message.c | |
parent | 2d744f4852b71ae21cbc25c87d4cc86b6f72fe19 (diff) | |
download | rspamd-e43699510542c7e4f720b6fc53e2efb76a7d57cd.tar.gz rspamd-e43699510542c7e4f720b6fc53e2efb76a7d57cd.zip |
* Add ability to check hashes of selected mime types
* Add ability to set minimum size in bytes for mime types
* Add ability to set minimum dimensions for images
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/message.c b/src/message.c index 2491ddfc0..ac3dcb88f 100644 --- a/src/message.c +++ b/src/message.c @@ -710,14 +710,6 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) 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); - memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_free, mime_part->checksum); - } - else { - mime_part->checksum = NULL; - } debug_task ("found part with content-type: %s/%s", type->type, type->subtype); task->parts = g_list_prepend (task->parts, mime_part); /* Skip empty parts */ |