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:
parent
ece68bae5d
commit
54633a4e16
@ -1587,7 +1587,7 @@ public class MessageList
|
|||||||
case R.id.same_sender:
|
case R.id.same_sender:
|
||||||
{
|
{
|
||||||
MessageList.actionHandle(MessageList.this,
|
MessageList.actionHandle(MessageList.this,
|
||||||
"From "+holder.sender, holder.sender, true,
|
"From "+holder.sender, holder.senderAddress, true,
|
||||||
null, null);
|
null, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2480,6 +2480,7 @@ public class MessageList
|
|||||||
public Date compareDate;
|
public Date compareDate;
|
||||||
public String compareSubject;
|
public String compareSubject;
|
||||||
public String sender;
|
public String sender;
|
||||||
|
public String senderAddress;
|
||||||
public String compareCounterparty;
|
public String compareCounterparty;
|
||||||
public String preview;
|
public String preview;
|
||||||
public String[] recipients;
|
public String[] recipients;
|
||||||
@ -2557,6 +2558,17 @@ public class MessageList
|
|||||||
this.compareCounterparty = this.sender;
|
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.subject = message.getSubject();
|
||||||
|
|
||||||
this.uid = message.getUid();
|
this.uid = message.getUid();
|
||||||
|
Loading…
Reference in New Issue
Block a user