rfc2045: the (CR)LF before the boundary belongs to the boundary

This commit is contained in:
Christian Neukirchen 2016-08-06 19:09:49 +02:00
parent cc8df261b2
commit 758351abc5

View File

@ -162,6 +162,11 @@ blaze822_multipart(struct message *msg, struct message **imsg)
if (!nextpart) if (!nextpart)
return 0; // XXX error condition return 0; // XXX error condition
if (*(nextpart-1) == '\n')
nextpart--;
if (*(nextpart-1) == '\r')
nextpart--;
*imsg = blaze822_mem(part, nextpart-part); *imsg = blaze822_mem(part, nextpart-part);
return 1; return 1;