aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_parser.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 1dc3d85d8..4439d055e 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1215,13 +1215,16 @@ rspamd_mime_parse_message (struct rspamd_task *task,
FALSE);
}
}
+ else {
+ body_pos = 0;
+
+ hdrs = rspamd_message_get_header_from_hash (npart->raw_headers,
+ task->task_pool,
+ "Content-Type", FALSE);
+ }
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,
- "Content-Type", FALSE);
}
npart->raw_data.begin = pbegin;