From dab0c9a97fdcaf4a3afe7fb1480302480ab54f01 Mon Sep 17 00:00:00 2001 From: Koji Arai Date: Fri, 2 Jul 2010 14:57:55 +0000 Subject: [PATCH] Fixes Issue 1914 Show To, Cc and From headers on the part of additional headers without fetching all headers. --- src/com/fsck/k9/activity/MessageView.java | 2 +- src/com/fsck/k9/mail/store/LocalStore.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index a240975eb..913ee7d05 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -539,7 +539,7 @@ public class MessageView extends K9Activity implements OnClickListener label.setSpan(boldSpan, 0, label.length(), 0); sb.append(label); - sb.append(additionalHeader.value.replaceAll("\\r\\n", "")); + sb.append(MimeUtility.unfoldAndDecode(additionalHeader.value)); } mAdditionalHeadersView.setText(sb); diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 4cff61d12..cccb55c40 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -49,6 +49,9 @@ public class LocalStore extends Store implements Serializable static { HEADERS_TO_SAVE.add(K9.K9MAIL_IDENTITY); + HEADERS_TO_SAVE.add("To"); + HEADERS_TO_SAVE.add("Cc"); + HEADERS_TO_SAVE.add("From"); HEADERS_TO_SAVE.add("In-Reply-To"); HEADERS_TO_SAVE.add("References"); HEADERS_TO_SAVE.add("X-User-Agent");