[evolution-data-server/gnome-3-16] Bug 751462 - Include header name length when folding long lines



commit 77c5e80f40b2feab6b2037d924cef8ab2d9f6f06
Author: Arthur de Jong <adejong debian org>
Date:   Thu Jun 25 22:50:39 2015 +0200

    Bug 751462 - Include header name length when folding long lines

 camel/camel-mime-utils.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 6fae183..872474f 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -5236,12 +5236,9 @@ camel_header_fold (const gchar *in,
                                g_string_truncate (out, out->len - 1);
                                g_string_append_c (out, '\n');
                                g_string_append_c (out, spc);
-                       } else {
-                               g_string_append (out, "\n\t");
+                               outlen = 1;
                        }
 
-                       outlen = 1;
-
                        /* check for very long words, just cut them up */
                        while (outlen + len > CAMEL_FOLD_MAX_SIZE) {
                                tmplen = CAMEL_FOLD_MAX_SIZE - outlen;


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