I think you can probably use procmail to achieve what you require. I'm no expert with it, but I seem to recall from the documentation that it has the facility to do search and replace on email, as well as redirecting it.

pca
_________________________
Experience is what you get just after it would have helped...