mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Allow matching domain names
This commit is contained in:
@@ -157,12 +157,12 @@ public class EntityIdentity {
|
||||
if (cother.length != 2 || cemail.length != 2)
|
||||
return false;
|
||||
|
||||
// Domain
|
||||
if (!cother[1].equalsIgnoreCase(cemail[1]))
|
||||
return false;
|
||||
|
||||
// User
|
||||
if (TextUtils.isEmpty(sender_extra_regex)) {
|
||||
// Domain
|
||||
if (!cother[1].equalsIgnoreCase(cemail[1]))
|
||||
return false;
|
||||
|
||||
// User
|
||||
int plus = cother[0].indexOf('+');
|
||||
String user = (plus < 0 ? cother[0] : cother[0].substring(0, plus));
|
||||
if (user.equalsIgnoreCase(cemail[0]))
|
||||
|
||||
Reference in New Issue
Block a user