1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-30 23:00:09 -05:00

Fixes Issue 1914

Show To, Cc and From headers on the part of additional headers without fetching all headers.
This commit is contained in:
Koji Arai 2010-07-02 14:57:55 +00:00
parent 3ee3fad3d6
commit dab0c9a97f
2 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,7 @@ public class MessageView extends K9Activity implements OnClickListener
label.setSpan(boldSpan, 0, label.length(), 0); label.setSpan(boldSpan, 0, label.length(), 0);
sb.append(label); sb.append(label);
sb.append(additionalHeader.value.replaceAll("\\r\\n", "")); sb.append(MimeUtility.unfoldAndDecode(additionalHeader.value));
} }
mAdditionalHeadersView.setText(sb); mAdditionalHeadersView.setText(sb);

View File

@ -49,6 +49,9 @@ public class LocalStore extends Store implements Serializable
static static
{ {
HEADERS_TO_SAVE.add(K9.K9MAIL_IDENTITY); 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("In-Reply-To");
HEADERS_TO_SAVE.add("References"); HEADERS_TO_SAVE.add("References");
HEADERS_TO_SAVE.add("X-User-Agent"); HEADERS_TO_SAVE.add("X-User-Agent");