fix: blacklist domain check

This commit is contained in:
eoao
2026-05-08 23:26:22 +08:00
parent 522db4ee3a
commit f0bf6da963

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
}
}