summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 16:05:31 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 16:05:31 +0200
commit435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0 (patch)
tree1ba9aa7fc369dd6ee7d4fc51fbb4fc68b90d1564
parent5b84593e78927b716da4b65c95ef92aabdf4c548 (diff)
downloadmblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.tar.gz
mblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.tar.xz
mblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.zip
rfc2045: fix crlf after boundary
-rw-r--r--rfc2045.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rfc2045.c b/rfc2045.c
index cb6d317..e2e8658 100644
--- a/rfc2045.c
+++ b/rfc2045.c
@@ -114,7 +114,9 @@ blaze822_multipart(struct message *msg, struct message **imsg)
 		return 0;
 	/// XXX access to stuff before first boundary?
 	part += boundarylen;
-	if (*part == '\n')    // XXX crlf
+	if (*part == '\r')
+		part++;
+	if (*part == '\n')
 		part++;
 	else if (*part == '-' && part < msg->bodyend && *(part+1) == '-')
 		return 0;