Command Extension: Command Mail
To make a new local command usable for all ML's on this host,
you need to put the module you wrote at
/usr/local/lib/fml/site_local/
.
If the command is allowed only for the specifiec ML
(e.g. elena ML), put it at the ML local library path
/var/spool/ml/elena/local/lib/
where $ml_home_dir = /var/spool/ml/elena.
Create A New User Command
Consider to make a new local user command "uja".
Pick up a command at FML::Command::User, cut and paste it.
Please put it at
/usr/local/lib/fml/site_local/FML/Command/User/uja.pm
To permit the use of it for all ML's,
edit site_default_config.cf to add it into $commands_for_user
to permit the user of "uja" command.
user_command_mail_allowed_commands += uja
It you allow the command only for the specific elena ML,
edit /var/spool/ml/elena/config.cf in the same way.
user_command_mail_allowed_commands += uja
Create A New Admin Command Such As "admin uja"
In the same way described above, hack the module!:)
but the module path differs.
Put it at the FML::Command::Admin:: class. For example
/usr/local/lib/fml/site_local/FML/Command/Admin/uja.pm
Edit site_default_config.cf to add it into
$user_command_mail_allowed_commands to permit the use of "admin uja"
command.
admin_command_mail_allowed_commands += uja
CUI Command Extension: makefml/fml
To make a new local command usable for all ML's on this host,
put the module you wrote at
/usr/local/lib/fml/site_local/
If you permit the command is used only for the specifiec ML
(e.g. elena ML), put it at the ML local library path
/var/spool/ml/elena/local/lib/
.
In this section, we consider the former case.
In both cases, the module codes are same.
Create a module "uja" and put it at
/usr/local/lib/fml/site_local/FML/Command/Admin/uja.pm
You do not need to edit .cf files. The existence of module file
enables the command automatically in the CUI case since the usability
of CUI implies administrator use.
GUI Command Extension: CGI
You need another work to create a menu screen.
To make a new local command usable for all ML's on this host,
put the module you wrote at
/usr/local/lib/fml/site_local/
If you permit the command is used only for the specifiec ML
(e.g. elena ML), put it at the ML local library path
/var/spool/ml/elena/local/lib/
.
In this section, we consider the former case.
In both cases, the module codes are same.
Craete a module "uja" and put it at
/usr/local/lib/fml/site_local/FML/Command/Admin/uja.pm
Edit site_default_config.cf to add it into $admin_cgi_allowed_commands
to permit the use of "uja" command.
admin_cgi_allowed_commands += uja