about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;