blob: 8303e7edc7765a378c96cd7700ad82e15f7517ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<!--
$FML: autoreply.sgml,v 1.2 2005/07/20 10:37:42 fukachan Exp $
$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
/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.
</para>
<para>
In this case, set the following at config.cf
<screen>
article_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 => "/some/where/help",
filename => "help",
disposition => "help example",
});
$curproc->stop_this_process();
};
</screen>
The last
<screen>
$curproc->stop_this_process();
</screen>
method of &fml8; corresponds to the statement
<screen>
$DO_NOTHING = 1;
</screen>
of &fml4;.
After this statement, the normal processing stops.
</para>
</sect1>
|