src/sample.c demonstrates how to write a new script generator, exporting:
Called to initialize the module. Returns a NULL-terminated list of mailing lists, which can be managed by the generator module. The list of lists is freed by the generator module.
Generates the scripts for the mailing list listname and returns returns a NULL-terminated pair of the script names and script content. E.g. for the script ABC-L, the return value might look like {"ABC-L", "#script for ABC-L", "ABC-L-request", "#script for proceeding the mails for ABC-L-request", NULL}.