Tomas Janousek ba817a
--- cyrus-imapd-2.3.7/imap/message.c	2006-10-28 22:18:08.000000000 +0200
Tomas Janousek ba817a
+++ cyrus-imapd-2.3.7/imap/message.c.nobarenewlinescheck	2006-10-28 22:21:55.000000000 +0200
Tomas Janousek ba817a
@@ -256,8 +256,9 @@
Tomas Janousek ba817a
 		r = IMAP_MESSAGE_CONTAINSNULL;
Tomas Janousek ba817a
 	    }
Tomas Janousek ba817a
 	    else if (*p == '\n') {
Tomas Janousek ba817a
-		if (!sawcr && (inheader || !allow_null))
Tomas Janousek ba817a
-		    r = IMAP_MESSAGE_CONTAINSNL;
Tomas Janousek ba817a
+		/* Do *NOT* check for RFC compliant line breaks (bare newlines) */
Tomas Janousek ba817a
+		/* if (!sawcr && (inheader || !allow_null))
Tomas Janousek ba817a
+		    r = IMAP_MESSAGE_CONTAINSNL; */
Tomas Janousek ba817a
 		sawcr = 0;
Tomas Janousek ba817a
 		if (blankline) {
Tomas Janousek ba817a
 		    inheader = 0;