An example of a LotusScript agent that would add a rule to each user's mail file
To do this programmatically would be fairly complex. Not only would you have to add a rule document to the personal address book, but you would also have to update the appropriate fields in the calendar profile to enable the new rule. To gain an understanding of how rules are enabled and stored in the CalendarProfile document, look at the code in the "Enable" action of the Rules folder.