(rspamd_mempool_destruct_t)g_hash_table_unref, res->attrs);
}
+ srch.begin = "multipart";
+ srch.len = 9;
+
+ if (rspamd_ftok_cmp (&res->type, &srch) == 0) {
+ res->flags |= RSPAMD_CONTENT_TYPE_MULTIPART;
+ }
+
/* Now do some hacks to work with broken content types */
if (res->subtype.len == 0) {
res->flags |= RSPAMD_CONTENT_TYPE_BROKEN;
enum rspamd_content_type_flags {
RSPAMD_CONTENT_TYPE_VALID = 0,
RSPAMD_CONTENT_TYPE_BROKEN = 1 << 0,
+ RSPAMD_CONTENT_TYPE_MULTIPART = 1 << 1,
};
struct rspamd_content_type_param {