Mail::Delivery::Queue class inserts a message to send back into the mail queue. Later FML::Process::QueueManager handles the real delivery process.
Article delivery processing is a little diffferent but based on queueing by Mail::Delivery::Queue. If someting error occurs in delivery, another fml process tries to deliver it later.
Code is like this to send back a message:
$curproc->reply_message( "you are not a ML member." );If no recipient specified, the recipient is the sender of the message (From: address).
To send a file, like this:
$curproc->reply_message( {
type => "text/plain; charset=iso-2022-jp",
path => "/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>.