Sounds like something [Rules][1] should be able to do.


  [1]: http://drupal.org/project/rules