From 61205f34eccdaf65d639cf15f7599ebe4830d5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 21 May 2021 03:14:10 +0200 Subject: Optimize 'fh' script --- src/fh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fh b/src/fh index 0907aba..74c84a4 100755 --- a/src/fh +++ b/src/fh @@ -8,15 +8,15 @@ BEGIN { } ($_, $next) = ($next, $_); -skip if header qr/^X-\S+:/i and not header qr/^( - X-Mailer - | X-Virus-Scanned -):/x; +skip if header qr/^X-(?!( + Mailer + | Rspamd-\S+ +):)/xi; skip if header qr/^( Received | Received-SPF | (DKIM|DomainKey)-Signature - | ARC-Message-Signature + | ARC-\S+ | IronPort-\S+ ):/x; -- cgit v1.2.3