Show "From", "To", "Cc" headers in "raw" form when displaying all message headers.

Fixes issue 1805
This commit is contained in:
cketti 2010-06-16 19:58:09 +00:00
parent 4f7ab92985
commit 6b5e9949d7
1 changed files with 5 additions and 4 deletions

View File

@ -1036,11 +1036,12 @@ public class MessageView extends K9Activity implements OnClickListener
{
List<HeaderEntry> additionalHeaders = new LinkedList<HeaderEntry>();
// Do not include the following headers, since they are always visible anyway
/*
* Remove "Subject" header as it is already shown in the standard
* message view header. But do show "From", "To", and "Cc" again.
* This time including the email addresses. See issue 1805.
*/
Set<String> headerNames = new HashSet<String>(message.getHeaderNames());
headerNames.remove("To");
headerNames.remove("From");
headerNames.remove("Cc");
headerNames.remove("Subject");
for (String headerName : headerNames)