Highlight mail-do domain name, refactoring

This commit is contained in:
M66B
2021-07-02 07:32:15 +02:00
parent 9dc7795320
commit 3449815e68
8 changed files with 71 additions and 24 deletions

View File

@@ -315,14 +315,14 @@ public class EntityMessage implements Serializable {
int rat = (r == null ? -1 : r.indexOf('@'));
if (rat < 0)
continue;
String rdomain = DnsHelper.getParentDomain(r.substring(rat + 1));
String rdomain = UriHelper.getParentDomain(r.substring(rat + 1));
for (Address _from : from) {
String f = ((InternetAddress) _from).getAddress();
int fat = (f == null ? -1 : f.indexOf('@'));
if (fat < 0)
continue;
String fdomain = DnsHelper.getParentDomain(f.substring(fat + 1));
String fdomain = UriHelper.getParentDomain(f.substring(fat + 1));
if (!rdomain.equalsIgnoreCase(fdomain))
return context.getString(R.string.title_reply_domain, fdomain, rdomain);