送り返すべきメールは Mail::Delivery::Queue を使いML固有の queue に入れます。 queue に入ったメールは、のちに FML::Process::QueueManager クラス経由で(配送)処理をします。
微妙に処理が異なりますが、記事の配送もコマンドメールも同様に Mail::Delivery::Queue ベースのキューイング処理をしています。そのため、 配送処理の途中でエラーが起きた場合、別の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", });
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>.