mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Block parent domain
This commit is contained in:
@@ -1339,6 +1339,9 @@ public class EntityRule {
|
||||
if (block_domain) {
|
||||
String domain = UriHelper.getEmailDomain(sender);
|
||||
if (!TextUtils.isEmpty(domain) && !domains.contains(domain)) {
|
||||
String parent = UriHelper.getParentDomain(context, domain);
|
||||
if (parent != null)
|
||||
domain = parent;
|
||||
domains.add(domain);
|
||||
regex = true;
|
||||
sender = ".*@.*" + Pattern.quote(domain) + ".*";
|
||||
|
||||
Reference in New Issue
Block a user