}
if (found_txt || found_html) {
- msg_info_task ("found text part with incorrect content-type: %T/%T",
+ msg_info_task ("found %s part with incorrect content-type: %T/%T",
+ found_html ? "html" : "text",
&mime_part->ct->type, &mime_part->ct->subtype);
mime_part->ct->flags |= RSPAMD_CONTENT_TYPE_BROKEN;
}
guint i;
GPtrArray *hdrs;
struct rspamd_content_disposition *cd = NULL;
- rspamd_ftok_t srch, *found;
+ rspamd_ftok_t srch;
+ struct rspamd_content_type_param *found;
hdrs = rspamd_message_get_header_from_hash (part->raw_headers,
task->task_pool,
if (found) {
cd->type = RSPAMD_CT_ATTACHMENT;
- memcpy (&cd->filename, found, sizeof (cd->filename));
+ memcpy (&cd->filename, &found->value, sizeof (cd->filename));
}
}