1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 21:22:26 -05:00

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.

This commit is contained in:
ashley willis 2012-03-05 15:17:31 -06:00
parent 5591865f17
commit 78615f878d

View File

@ -2289,10 +2289,17 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
} }
if (ACTION_REPLY_ALL.equals(action)) { if (ACTION_REPLY_ALL.equals(action)) {
for (Address address : message.getRecipients(RecipientType.TO)) { if (message.getReplyTo().length > 0) {
for (Address address : message.getFrom()) {
if (!mAccount.isAnIdentity(address)) { if (!mAccount.isAnIdentity(address)) {
addAddress(mToView, address); addAddress(mToView, address);
} }
}
}
for (Address address : message.getRecipients(RecipientType.TO)) {
if (!mAccount.isAnIdentity(address) && !Utility.arrayContains(replyToAddresses, address)) {
addAddress(mToView, address);
}
} }
if (message.getRecipients(RecipientType.CC).length > 0) { if (message.getRecipients(RecipientType.CC).length > 0) {