This is more a question to understand if its technically possible.We have emails that go out if a job fails, and I wondered if its technically possible to built a run that will go through the system and update or add a recipient to emails on all items that have emails enabled.I understand that this can depend a lot on how the product is being used.
Yes the email within a uproc can be changed using the upd UPR command. The switch is the NOTIFY setting, example below straight from the commands manual.
To do a bulk update you could do a uxshw against all the uprocs then filter on whether there is an entry for mail :Y. once you get a list of uproc to update you can pass that list into the update command with the new recipient.
| notify : ( mail : Y
NOTIFY: Sets up e-mail notification on completion or launch of a Uproc.Item Format DefaultMAIL=Y|N 1c NCOMPLETED=Y|N 1c NABORTED=Y|N 1c NREFUSED=Y|N 1c NTIMEOVERRUN=Y|N 1c NJOBLOG=Y|N|value 1c | 4n NRECIPIENT="email1;email2…" 256c emptyExample:uxupd UPR EXP UPR=DEF_UPR NOTIFY MAIL=Y ABORTED=Y REFUSED=Y JOBLOG=400 recipient="admin@Automic.com;admin_du@Automic.com"