Not sure if it can be done programmatically, but the application could most likely install a rule file.

Cheers,
_