Unfortunately, I don't have a server side solution for you. However, my e-mail client, Calypso appears to have the ability to define a custom filter to do this (I don't have such a need but looking through the help file, it appears to be possible).
Hope this helps.
Kelvin