aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 15:12:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 15:12:50 +0100
commit8bb760de0b6446e0f6f79b83812ffb7d4383e1b8 (patch)
tree4c6b667a937e5856ac98172eaec8891a2b7f1079 /src/libstat
parent1cd27976e4e3649ba89eb537092747cae1ba079b (diff)
downloadrspamd-8bb760de0b6446e0f6f79b83812ffb7d4383e1b8.tar.gz
rspamd-8bb760de0b6446e0f6f79b83812ffb7d4383e1b8.zip
Add more metatokens for images.
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/stat_process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index ae15d7ec0..2c0cd8955 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -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);