mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Fixed regex/without domain
This commit is contained in:
@@ -168,7 +168,13 @@ public class EntityIdentity {
|
||||
if (user.equalsIgnoreCase(cemail[0]))
|
||||
return true;
|
||||
} else {
|
||||
String input = (sender_extra_regex.contains("@") ? other.toLowerCase(Locale.ROOT) : cother[0]);
|
||||
// Domain
|
||||
boolean at = sender_extra_regex.contains("@");
|
||||
if (!at && !cother[1].equalsIgnoreCase(cemail[1]))
|
||||
return false;
|
||||
|
||||
// User
|
||||
String input = (at ? other.toLowerCase(Locale.ROOT) : cother[0]);
|
||||
if (Pattern.matches(sender_extra_regex, input))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user