summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-21 03:14:10 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-21 03:14:10 +0200
commit61205f34eccdaf65d639cf15f7599ebe4830d5f9 (patch)
tree6125794195e657fc7b4107aa0d6acbb02490c948
parent6e35f85aeb27447cfb7d999e06c6b05dbd466053 (diff)
downloadmum-61205f34eccdaf65d639cf15f7599ebe4830d5f9.tar.gz
Optimize 'fh' script
-rwxr-xr-xsrc/fh10
1 files 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;