about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rfc2045.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rfc2045.c b/rfc2045.c
index 0f2f943..d7c2875 100644
--- a/rfc2045.c
+++ b/rfc2045.c
@@ -182,8 +182,8 @@ blaze822_multipart(struct message *msg, struct message **imsg)
 
 	char *nextpart = mymemmemnl(part, msg->bodyend - part, mboundary, boundarylen);
 	if (!nextpart)
-		return 0;   // XXX error condition
-	if (nextpart == part)  // invalid empty MIME part
+		nextpart = msg->bodyend;  // no boundary found, take all
+	else if (nextpart == part)  // invalid empty MIME part
 		return 0;   // XXX error condition
 
 	if (*(nextpart-1) == '\n')