aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 18:07:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 18:07:43 +0000
commit724346e65b1fe5552181c816596590c58331f0dc (patch)
treeaf587119e6918ebe63672366c15410e85e52666e /src
parent131965b991da69277d24d9064e78cb1ffca2028a (diff)
downloadrspamd-724346e65b1fe5552181c816596590c58331f0dc.tar.gz
rspamd-724346e65b1fe5552181c816596590c58331f0dc.zip
[Minor] Remove redundant headers parsing
Diffstat (limited to 'src')
-rw-r--r--src/libmime/message.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 6afa963cb..4e7445633 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -664,27 +664,6 @@ rspamd_message_parse (struct rspamd_task *task)
rspamd_message_from_data (task, p, len);
}
}
- else {
- GString str;
-
- str.str = (gchar *)p;
- str.len = len;
-
- hdr_pos = rspamd_string_find_eoh (&str, &body_pos);
-
- if (hdr_pos > 0 && hdr_pos < len) {
- task->raw_headers_content.begin = (gchar *) (p);
- task->raw_headers_content.len = hdr_pos;
- task->raw_headers_content.body_start = p + body_pos;
-
- if (task->raw_headers_content.len > 0) {
- rspamd_mime_headers_process (task, task->raw_headers,
- task->raw_headers_content.begin,
- task->raw_headers_content.len,
- TRUE);
- }
- }
- }
}
else {
task->flags &= ~RSPAMD_TASK_FLAG_MIME;