Szerző: Jasen Betts Dátum: Címzett: exim-users Tárgy: Re: [exim] Removing all headers with the same prefix
On 2017-04-18, Stefan Unterweger <28443.kr@???> wrote: > 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.
something using ${sg perhaps.
--
This email has not been checked by half-arsed antivirus software