You probably want to use a trigger rather than rulefor modifications like that. I think someone's putup one on the mailing lists fairly recently (withina couple of months anyway) so you might be able tofind it in the archives.