mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 758351abc533c25eada4d223c830d4051ee94e2c
parent cc8df261b2cf7d7867cb961b95bdabff5ec59a09
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Sat,  6 Aug 2016 19:09:49 +0200

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

Diffstat:
rfc2045.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/rfc2045.c b/rfc2045.c @@ -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;