Revert "Skip domain check for similar addresses"

This reverts commit 6b84531508.
This commit is contained in:
M66B 2020-02-10 08:28:34 +01:00
parent 3d226f635c
commit cd6847be70
1 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,10 @@ 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)) {
String user = (cother[0].contains("+") ? cother[0].split("\\+")[0] : cother[0]);