Auteur: Mike Bordignon (GMI) Date: À: Schramm, Dominik CC: exim-users Sujet: Re: [exim] Header replacement via system_filter
I've been searching and searching for that (throughout the documentation
too) but with no luck. Thank you so much!
Mike
Schramm, Dominik said the following on 23/07/2008 9:43 PM: > Hi Mike,
>
> Mike Bordignon wrote on Wednesday, July 23, 2008 5:32 AM:
>
>> I'm trying to replace certain parts of the Subject header in my
>> system_filter. I've got part of it working, and I can append
>> and prepend stuff to it (using header remove and header add),
>> but I can't seem to replace say, a word with another word
>> (a regex, for example).
>
> have you checked out the documentation?
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch43.html#SECTaddremheasys >
> Slightly altering the example given there, you could write:
>
> headers add "Subject: ${sg{$h_old-subject:}{[oO]ld [wW]ord}{new word}}"
>
> Would that accomplish what you try to do?