Chapter 17. Case studies of customization

Table of Contents
case study: auto file responder
case study: anyonen can use command mail.
case study: disable command mail
case study: mail magazine (1)
CASE STUDY: mail magazine (2)
case study: anyone can post.
CASE STUDY: article posting allowd if it is a reply to the former one.
CASE STUDY: PGP/PGP based authentication in posting
case study: hierarchical ML
I want to use ML by my account.
case study: office (1)
case study: office (2)

case study: auto file responder

Modify delivery process ( libexec/distribute ) to send back /some/where/help file. For example, when a user can send anything to help@fml.org, fml sends back help file to the sender.

In this case, set at config.cf

article_post_restrictions = permit_anyone
and define the following hook after =cut line.
$distribute_run_start_hook = q{

        $curproc->reply_message( {
                type        => "text/plain; charset=iso-2022-jp",
                path        => "/some/where/help",
                filename    => "help",
                disposition => "help example",
        });

	$curproc->stop_this_process();

};
The last
$curproc->stop_this_process();
method of fml8 corresponds to the statement
$DO_NOTHING = 1;
of fml4. After this statement, the normal processing stops.

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/fml/menu.ja.html.
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>.