mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Allow blocking invalid addresses
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user