You would need sendmail
to rewrite emails through a milter. Some serious assembly will be required, and you probably want to make sure that your milter-code doesn't accidentally break stuff, even in the weirdest circumstances for any other email. On the other hand, just matching the Subject
against a regular expression and replacing it should not be too difficult.
I doubt there is ready-made software for your problem.