mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 18:58:54 +08:00
u
This commit is contained in:
parent
e1941b44e4
commit
a4bd78f62c
1 changed files with 2 additions and 0 deletions
2
lmtp.js
2
lmtp.js
|
@ -466,10 +466,12 @@ function checkFilter(filter, prepared, maildata) {
|
||||||
let headerMatches = new Set();
|
let headerMatches = new Set();
|
||||||
for (let j = prepared.headers.length - 1; j >= 0; j--) {
|
for (let j = prepared.headers.length - 1; j >= 0; j--) {
|
||||||
let header = prepared.headers[j];
|
let header = prepared.headers[j];
|
||||||
|
log.info('dd5', '%s: %s, %s %s', header.key, header.value, headerFilters.get(header.key), header.value.indexOf(headerFilters.get(header.key)) >= 0);
|
||||||
if (headerFilters.has(header.key) && header.value.indexOf(headerFilters.get(header.key)) >= 0) {
|
if (headerFilters.has(header.key) && header.value.indexOf(headerFilters.get(header.key)) >= 0) {
|
||||||
headerMatches.add(header.key);
|
headerMatches.add(header.key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(headerMatches.size, headerFilters.size);
|
||||||
if (headerMatches.size < headerFilters.size) {
|
if (headerMatches.size < headerFilters.size) {
|
||||||
// not enough matches
|
// not enough matches
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue