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

Improvements to "more from this sender" - hopefully this should search

only on actual addresses, not their local parts.
This commit is contained in:
Jesse Vincent 2010-08-12 02:22:08 +00:00
parent ece68bae5d
commit 54633a4e16

View File

@ -1587,7 +1587,7 @@ public class MessageList
case R.id.same_sender:
{
MessageList.actionHandle(MessageList.this,
"From "+holder.sender, holder.sender, true,
"From "+holder.sender, holder.senderAddress, true,
null, null);
break;
}
@ -2480,6 +2480,7 @@ public class MessageList
public Date compareDate;
public String compareSubject;
public String sender;
public String senderAddress;
public String compareCounterparty;
public String preview;
public String[] recipients;
@ -2557,6 +2558,17 @@ public class MessageList
this.compareCounterparty = this.sender;
}
if (addrs.length > 0)
{
this.senderAddress = addrs[0].getAddress();
}
else
{
// a reasonable fallback "whomever we were corresponding with
this.senderAddress = this.compareCounterparty;
}
this.subject = message.getSubject();
this.uid = message.getUid();