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


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to