[exim] Removing all headers with the same prefix

Inizio della pagina
Delete this message
Reply to this message
Autore: Stefan Unterweger
Data:  
To: exim-users
Oggetto: [exim] Removing all headers with the same prefix
Hi,

I want to scrub certain kinds of headers for all incoming messages so
that I can use them for myself—and trust them. In particular, I want to
get rid of all headers which start with ‘Spam-’, no matter what comes
after that prefix (be it ‘Spam-Score’, ‘Spam-Whitelisted’ or whatever my
yet-to-be-designed antispam filters will come up with).

The Exim Specification mentions in §43.25 that ‘wildcards are not
permitted, nor is list expansion performed […] however, both connection
and message variable expansions are performed.‘

I have tried to find some kind of string expansion which would give me a
list of all message headers which start with my chosen prefix, or some
other kind of trick to get similar results, but so far, I didn’t find
anything. Of course I could list all possible combinations of ‘Spam-…’
that I can think of, but this is kind of a losing battle…

Any ideas are appreciated.

Cheers,
    Stefan


--
▪ Die Internetbleibe. Schick, magisch, leistungsstark. https://internetbleibe.de/
▪ medoly media UG (haftungsbeschränkt) | Hausburgstraße 13, 10249 Berlin
▪ info@??? | https://medolymedia.de/ | Tel. 030 609 826‒560 | Fax …‒569
▪ Geschäftsführer: Matthias Nothhaft | HRB 131198 (Amtsgericht Berlin-Charlottenburg), Sitz: Berlin, USt-ID: DE275221203