diff options
| author | fukachan <fukachan> | 2005-01-01 08:56:40 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-01-01 08:56:40 +0000 |
| commit | 9ac9223d299f1e440e8692a8569d8378e793eb45 (patch) | |
| tree | 32159f9de4f5910ebd2fa94362bf5f472b1e6352 /fml/lib/FML/Process | |
| parent | 6a59c5af66a0be4a70b3373fdc615d06f7285d13 (diff) | |
| download | fml8-9ac9223d299f1e440e8692a8569d8378e793eb45.tar.gz fml8-9ac9223d299f1e440e8692a8569d8378e793eb45.tar.bz2 fml8-9ac9223d299f1e440e8692a8569d8378e793eb45.zip | |
enhanced general reply message system.
o add X-Stardate:, Precedence: and Errors-To: header fields.
o enhance Reply-To: field handling.
Diffstat (limited to 'fml/lib/FML/Process')
| -rw-r--r-- | fml/lib/FML/Process/Kernel.pm | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm index 93152f62..928b0dd2 100644 --- a/fml/lib/FML/Process/Kernel.pm +++ b/fml/lib/FML/Process/Kernel.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Kernel.pm,v 1.250 2004/12/19 11:26:33 fukachan Exp $ +# $FML: Kernel.pm,v 1.251 2004/12/29 08:15:19 fukachan Exp $ # package FML::Process::Kernel; @@ -2348,7 +2348,10 @@ sub queue_in my $myname = $curproc->myname(); my $_defsubj = "message from fml8 $myname system"; my $subject = $config->{ "${category}_subject" } || $_defsubj; - my $reply_to = $config->{ command_mail_address }; + my $_rpto = $config->{ command_mail_address }; + my $reply_to = $config->{ outgoing_mail_header_reply_to } || $_rpto; + my $precedence = $config->{ outgoing_mail_header_precedence } || 'bulk'; + my $errors_to = $config->{ outgoing_mail_header_errors_to } || $sender; my $is_multipart = 0; my $rcptkey = ''; my $rcptlist = []; @@ -2360,6 +2363,7 @@ sub queue_in use Mail::Message::Date; my $_nowdate = new Mail::Message::Date time; my $our_date = $_nowdate->{ mail_header_style }; + my $stardate = $_nowdate->stardate(); # override parameters (may be processed here always) if (defined $optargs) { @@ -2445,11 +2449,14 @@ sub queue_in my $_to = $hdr_to || $rcptkey; eval q{ $msg = new Mail::Message::Compose - From => $sender, - To => $_to, - Subject => $subject, - Type => "multipart/mixed", - Datestamp => undef, + From => $sender, + To => $_to, + Subject => $subject, + "Errors-To:" => $errors_to, + "Precedence:" => $precedence, + "X-Stardate" => $stardate, + Type => "multipart/mixed", + Datestamp => undef, }; $msg->add('Reply-To' => $reply_to); $msg->add('Date' => $our_date); @@ -2551,11 +2558,14 @@ sub queue_in my $_to = $hdr_to || $rcptkey; eval q{ $msg = new Mail::Message::Compose - From => $sender, - To => $_to, - Subject => $subject, - Data => $s, - Datestamp => undef, + From => $sender, + To => $_to, + Subject => $subject, + "Errors-To:" => $errors_to, + "Precedence:" => $precedence, + "X-Stardate" => $stardate, + Data => $s, + Datestamp => undef, }; $msg->attr('content-type.charset' => $charset); $msg->add('Reply-To' => $reply_to); |
