Allow blocking invalid addresses

pull/212/head
M66B 2 years ago
parent 8904b4e9c5
commit 7d2dac420d

@ -1331,8 +1331,7 @@ public class EntityRule {
String sender = ((InternetAddress) from).getAddress();
String name = MessageHelper.formatAddresses(new Address[]{from});
if (TextUtils.isEmpty(sender) ||
!Helper.EMAIL_ADDRESS.matcher(sender).matches())
if (TextUtils.isEmpty(sender))
continue;
boolean regex = false;

Loading…
Cancel
Save