1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

replying to a message you sent shouldn't end up sending mail only to you

This commit is contained in:
Jesse Vincent 2010-12-01 06:04:12 +00:00
parent 438f88a982
commit 02acea3bbf

View File

@ -1704,13 +1704,24 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
Address[] replyToAddresses;
if (message.getReplyTo().length > 0)
{
addAddresses(mToView, replyToAddresses = message.getReplyTo());
replyToAddresses = message.getReplyTo();
}
else
{
addAddresses(mToView, replyToAddresses = message.getFrom());
replyToAddresses = message.getFrom();
}
// if we're replying to a message we sent, we probably meant
// to reply to the recipient of that message
if (mAccount.isAnIdentity(replyToAddresses))
{
replyToAddresses = message.getRecipients(RecipientType.TO);
}
addAddresses(mToView, replyToAddresses);
if (message.getMessageId() != null && message.getMessageId().length() > 0)
{
mInReplyTo = message.getMessageId();