fml 8 tutorial
Prev | Chapter 37. Command (Command Mail, CUI And GUI) | Next

# Command Extension: Command Mail

Warning
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

Prev | Home | Next
Data Flow Of Command Request Processing | Up | CUI Command Extension: makefml/fml

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.