]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add more metatokens for images.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Jul 2015 14:12:50 +0000 (15:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Jul 2015 14:12:50 +0000 (15:12 +0100)
src/libstat/stat_process.c

index ae15d7ec0c257d9adec63f34850fff600d8ddd48..2c0cd8955ec1e2a1481a1db69689eaf6faf404bc 100644 (file)
@@ -98,6 +98,9 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_task *task,
 
                /* If an image has a linked HTML part, then we push its details to the stat */
                if (img->html_image) {
+                       elt.begin = (gchar *)"image";
+                       elt.len = 5;
+                       g_array_append_val (ar, elt);
                        elt.begin = (gchar *)&img->html_image->height;
                        elt.len = sizeof (img->html_image->height);
                        g_array_append_val (ar, elt);