Re: [exim] Header replacement via system_filter

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Schramm, Dominik
Datum:  
To: exim-users
Betreff: Re: [exim] Header replacement via system_filter
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?

Regards,
Dominik