From: Vsevolod Stakhov Date: Tue, 22 Jan 2019 12:36:06 +0000 (+0000) Subject: [Minor] Mime: Fix processing of attached messages X-Git-Tag: 1.9.0~273 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72d9df9e6e44686d0e2c7e9132d50409515a4bf6;p=rspamd.git [Minor] Mime: Fix processing of attached messages --- diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 4439d055e..82a0cbafb 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1214,14 +1214,14 @@ rspamd_mime_parse_message (struct rspamd_task *task, npart->raw_headers_len, FALSE); } - } - else { - body_pos = 0; hdrs = rspamd_message_get_header_from_hash (npart->raw_headers, task->task_pool, "Content-Type", FALSE); } + else { + body_pos = 0; + } pbegin = part->parsed_data.begin + body_pos; plen = part->parsed_data.len - body_pos;