diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-13 11:32:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-13 11:32:43 +0100 |
commit | b374f222fe50e1c957e9398b40de9e780f23addf (patch) | |
tree | 302eef8e3bd89ae97ad754fa160b33592e689bdb /src/libmime/mime_parser.c | |
parent | f8b94440fdc5cdde583832ab1daabd7ef84f3831 (diff) | |
download | rspamd-b374f222fe50e1c957e9398b40de9e780f23addf.tar.gz rspamd-b374f222fe50e1c957e9398b40de9e780f23addf.zip |
[Fix] Fix headers propagation logic
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 5d1ff1b77..b40353dca 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1155,6 +1155,8 @@ rspamd_mime_parse_message (struct rspamd_task *task, 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 ( @@ -1178,6 +1180,8 @@ rspamd_mime_parse_message (struct rspamd_task *task, 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 ( @@ -1192,8 +1196,6 @@ rspamd_mime_parse_message (struct rspamd_task *task, pbegin = st->start + body_pos; plen = st->end - pbegin; - /* TODO: check if it is correct */ - npart->raw_headers = NULL; npart->headers_order = NULL; } else { |