mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Highlight mail-do domain name, refactoring
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user