fix: blacklist domain check

This commit is contained in:
aslost
2026-05-08 23:26:22 +08:00
parent 8c9361fe8b
commit be6bf380a6
+1 -1
View File
@@ -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
}
}