[evolution] Do not unfold DKIM and ARC headers in message preview



commit b462555259b44f0353f6da79ae802a2eac8c4f90
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 20 18:31:19 2019 +0200

    Do not unfold DKIM and ARC headers in message preview

 src/em-format/e-mail-formatter-utils.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/em-format/e-mail-formatter-utils.c b/src/em-format/e-mail-formatter-utils.c
index dba0743d3a..5724db203f 100644
--- a/src/em-format/e-mail-formatter-utils.c
+++ b/src/em-format/e-mail-formatter-utils.c
@@ -453,12 +453,12 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
                flags |= E_MAIL_FORMATTER_HEADER_FLAG_BOLD;
 
        } else if (g_str_equal (canon_name, "Received") ||
-                  g_str_has_prefix (canon_name, "X-")) {
+                  g_str_has_prefix (canon_name, "X-") ||
+                  g_str_has_prefix (canon_name, "Dkim-") ||
+                  g_str_has_prefix (canon_name, "Arc-")) {
                /* don't unfold Received nor extension headers */
                txt = value = camel_header_decode_string (header_value, charset);
-
        } else {
-               /* don't unfold Received nor extension headers */
                buf = camel_header_unfold (header_value);
                txt = value = camel_header_decode_string (buf, charset);
                g_free (buf);


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