From 78615f878d4ea28201e79652bd2c8694a09980a4 Mon Sep 17 00:00:00 2001 From: ashley willis Date: Mon, 5 Mar 2012 15:17:31 -0600 Subject: [PATCH] added From: addresses on reply all when Reply-To: is set. don't repeat address in To: field if it's already included in replyToAddresses. --- src/com/fsck/k9/activity/MessageCompose.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 927078cf2..8ecc78a08 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -2289,8 +2289,15 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc } if (ACTION_REPLY_ALL.equals(action)) { + if (message.getReplyTo().length > 0) { + for (Address address : message.getFrom()) { + if (!mAccount.isAnIdentity(address)) { + addAddress(mToView, address); + } + } + } for (Address address : message.getRecipients(RecipientType.TO)) { - if (!mAccount.isAnIdentity(address)) { + if (!mAccount.isAnIdentity(address) && !Utility.arrayContains(replyToAddresses, address)) { addAddress(mToView, address); }