MESSAGE_FIELD (task, raw_headers_content).begin,
MESSAGE_FIELD (task, raw_headers_content).len,
TRUE);
+ npart->raw_headers = rspamd_message_headers_ref (
+ MESSAGE_FIELD (task, raw_headers));
}
hdr = rspamd_message_get_header_from_hash (
MESSAGE_FIELD (task, raw_headers_content).begin,
MESSAGE_FIELD (task, raw_headers_content).len,
TRUE);
+ npart->raw_headers = rspamd_message_headers_ref (
+ MESSAGE_FIELD (task, raw_headers));
}
hdr = rspamd_message_get_header_from_hash (
pbegin = st->start + body_pos;
plen = st->end - pbegin;
- /* TODO: check if it is correct */
- npart->raw_headers = NULL;
npart->headers_order = NULL;
}
else {