[evolution-data-server] Bug 747988 - Adding 000D characters in plaintext mail replies
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 747988 - Adding 000D characters in plaintext mail replies
- Date: Mon, 25 May 2015 10:14:33 +0000 (UTC)
commit f0c6d0a3527d00c072088b77ef13c94b8b45d66f
Author: Milan Crha <mcrha redhat com>
Date: Mon May 25 12:14:01 2015 +0200
Bug 747988 - Adding 000D characters in plaintext mail replies
camel/camel-mime-filter-tohtml.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-mime-filter-tohtml.c b/camel/camel-mime-filter-tohtml.c
index ada8c34..0979a0c 100644
--- a/camel/camel-mime-filter-tohtml.c
+++ b/camel/camel-mime-filter-tohtml.c
@@ -225,9 +225,14 @@ writeln (CamelMimeFilter *mime_filter,
}
/* otherwise, FALL THROUGH */
default:
- if (u >= 20 && u <0x80)
+ if (u == '\r' && inptr >= inend) {
+ /* This constructs \r\n sequence at the end of the line, thus pass it in
+ only if not converting the new-line breaks */
+ if (!(priv->flags & CAMEL_MIME_FILTER_TOHTML_CONVERT_NL))
+ *outptr++ = u;
+ } else if (u >= 20 && u <0x80) {
*outptr++ = u;
- else {
+ } else {
if (priv->flags & CAMEL_MIME_FILTER_TOHTML_ESCAPE_8BIT)
*outptr++ = '?';
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]