Blame SOURCES/evolution-data-server-3.12.11-camel-tohtml-extra-cr.patch

5e6360
diff -up evolution-data-server-3.12.11/camel/camel-mime-filter-tohtml.c.camel-tohtml-extra-cr evolution-data-server-3.12.11/camel/camel-mime-filter-tohtml.c
5e6360
--- evolution-data-server-3.12.11/camel/camel-mime-filter-tohtml.c.camel-tohtml-extra-cr	2014-09-01 10:07:00.000000000 +0200
5e6360
+++ evolution-data-server-3.12.11/camel/camel-mime-filter-tohtml.c	2015-05-26 14:52:34.607271983 +0200
5e6360
@@ -225,9 +225,14 @@ writeln (CamelMimeFilter *mime_filter,
5e6360
 			}
5e6360
 			/* otherwise, FALL THROUGH */
5e6360
 		default:
5e6360
-			if (u >= 20 && u <0x80)
5e6360
+			if (u == '\r' && inptr >= inend) {
5e6360
+				/* This constructs \r\n sequence at the end of the line, thus pass it in
5e6360
+				   only if not converting the new-line breaks */
5e6360
+				if (!(priv->flags & CAMEL_MIME_FILTER_TOHTML_CONVERT_NL))
5e6360
+					*outptr++ = u;
5e6360
+			} else if (u >= 20 && u <0x80) {
5e6360
 				*outptr++ = u;
5e6360
-			else {
5e6360
+			} else {
5e6360
 				if (priv->flags & CAMEL_MIME_FILTER_TOHTML_ESCAPE_8BIT)
5e6360
 					*outptr++ = '?';
5e6360
 				else