mirror of https://github.com/M66B/FairEmail.git
Compare reply parent domain
This commit is contained in:
parent
7c9ee670df
commit
08b1d59acb
|
@ -2174,12 +2174,12 @@ class Core {
|
|||
String r = ((InternetAddress) reply).getAddress();
|
||||
int rat = (r == null ? -1 : r.indexOf('@'));
|
||||
if (rat > 0) {
|
||||
String rdomain = r.substring(rat + 1);
|
||||
String rdomain = ConnectionHelper.getParentDomain(r.substring(rat + 1));
|
||||
for (Address from : message.from) {
|
||||
String f = ((InternetAddress) from).getAddress();
|
||||
int fat = (f == null ? -1 : f.indexOf('@'));
|
||||
if (fat > 0) {
|
||||
String fdomain = f.substring(fat + 1);
|
||||
String fdomain = ConnectionHelper.getParentDomain(f.substring(fat + 1));
|
||||
if (!rdomain.equalsIgnoreCase(fdomain)) {
|
||||
if (message.warning == null)
|
||||
message.warning = context.getString(R.string.title_reply_domain, fdomain, rdomain);
|
||||
|
|
Loading…
Reference in New Issue