[evolution] [em-format] Unfold Mailer header value before using it



commit 9454c6091e8ba31380bb239f90caaed2455eb1f7
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 13 09:52:53 2019 +0100

    [em-format] Unfold Mailer header value before using it
    
    No need to preserve Mailer header value as received and constructed
    by the sender's software, better to unfold it and left wrapping
    on the preview panel.

 src/em-format/e-mail-formatter-utils.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/em-format/e-mail-formatter-utils.c b/src/em-format/e-mail-formatter-utils.c
index 415ed8dc63..d455932f6f 100644
--- a/src/em-format/e-mail-formatter-utils.c
+++ b/src/em-format/e-mail-formatter-utils.c
@@ -344,7 +344,9 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
        } else if (g_str_equal (canon_name, "X-Evolution-Mailer")) {
                /* pseudo-header */
                label = _("Mailer");
-               txt = value = camel_header_format_ctext (header_value, charset);
+               buf = camel_header_unfold (header_value);
+               txt = value = camel_header_format_ctext (buf, charset);
+               g_free (buf);
                flags |= E_MAIL_FORMATTER_HEADER_FLAG_BOLD;
 
        } else if (g_str_equal (canon_name, "Date") ||


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