{
guint i;
struct rspamd_mime_part *part;
- rspamd_ftok_t srch;
-
- RSPAMD_FTOK_ASSIGN (&srch, "image");
PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, parts), i, part) {
if (!(part->flags & (RSPAMD_MIME_PART_TEXT|RSPAMD_MIME_PART_ARCHIVE))) {
- if (rspamd_ftok_cmp (&part->ct->type, &srch) == 0 &&
+ if (part->detected_type &&
+ strcmp (part->detected_type, "image") == 0 &&
part->parsed_data.len > 0) {
+
process_image (task, part);
}
}
L = task->cfg->lua_state;
}
- rspamd_images_process (task);
rspamd_archives_process (task);
if (L && rspamd_lua_require_function (L,
}
}
+ rspamd_images_process (task);
rspamd_images_link (task);
+
rspamd_tokenize_meta_words (task);
}