]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Another fix for exim workaround
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 May 2016 11:55:24 +0000 (12:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 May 2016 11:56:27 +0000 (12:56 +0100)
Issue: #637
Reported by: @FelixSchwarz

src/libmime/message.c

index 7dc35f8f33c97dc1f7838b47f41deb45200424a7..b94c6185c52b66975b827d99b03c0fa389121ac3 100644 (file)
@@ -1643,6 +1643,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 ++;
@@ -1658,6 +1659,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);
        /*