fml からメールで返事を送り返す

送り返すべきメールは Mail::Delivery::Queue を使いML固有の queue に入れます。 queue に入ったメールは、のちに FML::Process::QueueManager クラス経由で(配送)処理をします。

微妙に処理が異なりますが、記事の配送もコマンドメールも同様に Mail::Delivery::Queue ベースのキューイング処理をしています。そのため、 配送処理の途中でエラーが起きた場合、別のfmlプロセスにより再送処理が行 なわれます。

fml の中では、どう書くのか?

あるメッセージ(テキストメッセージ)を送り返したい場合は、次のように書きます。

$curproc->reply_message( "you are not a ML member." );
この場合の受信者はコマンドの結果などを受けとる人、 fml にリクエストをした人です。

ファイルを送りたい場合や画像ファイルを送りたい場合は次のようにします。

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

$curproc->reply_message( {
        type        => "image/gif",
        path        => "/some/where/logo001.gif",
        filename    => "logo.gif",
        disposition => "attachment",
    });

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>.