1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Accept full domain regex

Closes #181
This commit is contained in:
M66B 2020-06-28 08:56:11 +02:00
parent ff5c257c23
commit 3b780c32ef

View file

@ -154,7 +154,8 @@ public class EntityIdentity {
if (user.equalsIgnoreCase(cemail[0]))
return true;
} else {
if (Pattern.matches(sender_extra_regex, cother[0]))
String input = (sender_extra_regex.contains("@") ? other : cother[0]);
if (Pattern.matches(sender_extra_regex, input))
return true;
}