[balsa] "\N" encodes newline



commit a69f6605c06ff54004ace83ee05f7e1789c54dc0
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Nov 7 18:01:33 2009 -0500

    "\N" encodes newline

 ChangeLog          |    4 ++++
 libbalsa/rfc2445.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 67d86c1..e04f113 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-07  Peter Bloomfield
+
+	* libbalsa/rfc2445.c (text_2445_unescape): "\N" encodes newline.
+
 2009-11-01  Peter Bloomfield
 
 	* libbalsa/html.c (lbh_size_request_cb): only increase the
diff --git a/libbalsa/rfc2445.c b/libbalsa/rfc2445.c
index 68cd69a..dc3d3dd 100644
--- a/libbalsa/rfc2445.c
+++ b/libbalsa/rfc2445.c
@@ -574,7 +574,7 @@ text_2445_unescape(const gchar * text)
     retval = g_strdup(text);
     p = strchr(retval, '\\');
     while (p) {
-	if (p[1] == 'n')
+	if (p[1] == 'n' || p[1] == 'N')
 	    p[1] = '\n';
 	memmove(p, p + 1, strlen(p + 1) + 1);
 	p = strchr(retval, '\\');



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]