Hi, 

I have a testing box that is hosting a webapp and it is not supposed to send
mail to the "real" recipients during testing phase. Though it should sent it
anyway for debugging purpose.

So I came up with this rules in header_check...

/^To:[[:space:]]+(.*)@(.*)\.(.*)/ REDIRECT majord...@example.fr

Works great. And it ideally keep the original address it would have been to.

Now we want the subject modified according to the environment emitting the
message:

/^Subject:(.*)$/ REPLACE Subject:[QUALITY] $1

This works great too.

BUT I cannot chain the two rules... Hence If I change the order of my regexp
in header_check file the first rule matching, the email is sent.

So I cannot have the two at the same time. I would like to chain the two
modifications. How is it possible ?

Thanks for any help.
Stéphane

PS : I tried to delegate the redirection "To" to a generic_maps directive
but I cannot keep track of the original value so I'm still searching.

---

Reply via email to