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 the help file to the sender.
In this case, set the following 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.