From a4bd78f62c4bc3c47ab2ab5be583687b2dae11be Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 31 Jul 2017 00:16:22 +0300 Subject: [PATCH] u --- lmtp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lmtp.js b/lmtp.js index c5f68192..8b7b8973 100644 --- a/lmtp.js +++ b/lmtp.js @@ -466,10 +466,12 @@ function checkFilter(filter, prepared, maildata) { let headerMatches = new Set(); for (let j = prepared.headers.length - 1; j >= 0; 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) { headerMatches.add(header.key); } } + console.log(headerMatches.size, headerFilters.size); if (headerMatches.size < headerFilters.size) { // not enough matches return false;