aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-26 12:55:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-26 12:55:24 +0100
commitc51852e35947662f09abf878c879bf44296ae49f (patch)
treecf66bf66b68ae819c1dfab3fe41439d4fa601aa4 /src/libmime/message.c
parent00ef6cd9bb122debbd41fa1694670881ba969593 (diff)
downloadrspamd-c51852e35947662f09abf878c879bf44296ae49f.tar.gz
rspamd-c51852e35947662f09abf878c879bf44296ae49f.zip
[Fix] Another fix for exim workaround
Issue: #637 Reported by: @FelixSchwarz
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r--src/libmime/message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 5b7c4ae2f..b20da368a 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1663,6 +1663,7 @@ rspamd_message_parse (struct rspamd_task *task)
/* Skip to CRLF */
msg_info_task ("mailbox input detected, enable workaround");
p += sizeof ("From ") - 1;
+ len -= sizeof ("From ") - 1;
while (len > 0 && *p != '\n') {
p ++;
@@ -1678,6 +1679,8 @@ rspamd_message_parse (struct rspamd_task *task)
tmp->data = (guint8 *)p;
tmp->len = len;
+ task->msg.begin = p;
+ task->msg.len = len;
stream = g_mime_stream_mem_new_with_byte_array (tmp);
/*