borrowers-force-messaging-defaults.pl
borrowers-force-messaging-defaults.pl borrowers-force-messaging-defaults.pl --help borrowers-force-messaging-defaults.pl --doit borrowers-force-messaging-defaults.pl --doit --truncate borrowers-force-messaging-defaults.pl --doit --not-expired
If the EnhancedMessagingPreferences syspref is enabled after borrowers have been created in the DB, those borrowers won't have messaging transport preferences default values as defined for their borrower category. So you would have to modify each borrower one by one if you would like to send them 'Hold Filled' notice for example.
This script create transport preferences for all existing borrowers and set them to default values defined for the category they belong to.
Prints this help
Actually update the borrowers.
Truncate all borrowers transport preferences before (re-)creating them. It affects borrower_message_preferences table.
Will only update active borrowers (borrowers who didn't pass their expiration date).