mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
rfc2045: the (CR)LF before the boundary belongs to the boundary
This commit is contained in:
parent
cc8df261b2
commit
758351abc5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user