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

pull/2/head
Christian Neukirchen 8 years ago
parent cc8df261b2
commit 758351abc5

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

Loading…
Cancel
Save