Revert "Skip domain check for similar addresses"

This reverts commit 6b84531508.
pull/174/head
M66B 5 years ago
parent 3d226f635c
commit cd6847be70

@ -139,6 +139,10 @@ public class EntityIdentity {
if (cother.length != 2 || cemail.length != 2) if (cother.length != 2 || cemail.length != 2)
return false; return false;
// Domain
if (!cother[1].equalsIgnoreCase(cemail[1]))
return false;
// User // User
if (TextUtils.isEmpty(sender_extra_regex)) { if (TextUtils.isEmpty(sender_extra_regex)) {
String user = (cother[0].contains("+") ? cother[0].split("\\+")[0] : cother[0]); String user = (cother[0].contains("+") ? cother[0].split("\\+")[0] : cother[0]);

Loading…
Cancel
Save