<!--
   $FML$
   $jaFML: autoreply.sgml,v 1.2 2003/01/05 08:00:59 fukachan Exp $
-->

<sect1 id="config.autoreply">
	<title>
	case study: auto file responder
	</title>

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

<para>
In this case, set at config.cf
<screen>
post_restrictions = permit_anyone
</screen>
and define the following hook after =cut line.
<screen>
$distribute_run_start_hook = q{

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

        $curproc->refuse_further_processing();

};
</screen>
</para>

</sect1>
