fix: blacklist domain check
This commit is contained in:
@@ -199,7 +199,7 @@ function checkBlock(blackSubjectStr, blackContentStr, blackFromStr, email) {
|
||||
}
|
||||
|
||||
for (const blackFrom of blackFromList) {
|
||||
if (email.from.address.includes(blackFrom)) {
|
||||
if (email.from.address === blackFrom || emailUtils.getDomain(email.from.address) === blackFrom) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user