From 6c28c4d2d74ed8391daf99fba4c64cb13c902f27 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 17 Dec 2018 14:56:21 +0000 Subject: [Fix] Core: Fix content calculations for message parts --- src/libmime/mime_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 2ba48e372..242c656f0 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1216,8 +1216,8 @@ rspamd_mime_parse_message (struct rspamd_task *task, } } - pbegin = part->parsed_data.begin; - plen = part->parsed_data.len; + pbegin = part->parsed_data.begin + body_pos; + plen = part->parsed_data.len - body_pos; hdrs = rspamd_message_get_header_from_hash (npart->raw_headers, task->task_pool, -- cgit v1.2.3