summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-02-20 14:11:37 +0000
committerfukachan <fukachan>2002-02-20 14:11:37 +0000
commitedf2fb40f77871a20cef8b549fc2c5d413e853e6 (patch)
tree7e73338fd8a51a95e6144b043fc34a694e7b2cbe /fml/lib
parenta869e41f42b1817d2a3e1e8bd1fa12c335c187f7 (diff)
downloadfml8-edf2fb40f77871a20cef8b549fc2c5d413e853e6.tar.gz
fml8-edf2fb40f77871a20cef8b549fc2c5d413e853e6.tar.bz2
fml8-edf2fb40f77871a20cef8b549fc2c5d413e853e6.zip
add Reply-To: into our reply message
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Process/Kernel.pm22
1 files changed, 12 insertions, 10 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index 57a20fbb..8421e2e1 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.74 2002/02/17 13:46:55 fukachan Exp $
+# $FML: Kernel.pm,v 1.75 2002/02/18 12:30:48 fukachan Exp $
#
package FML::Process::Kernel;
@@ -676,6 +676,7 @@ sub queue_in
my $charset = $config->{ "${category}_charset" } || 'us-ascii';
my $subject = $config->{ "${category}_subject" };
my $recipient = undef; # by default. used as sanity check later
+ my $reply_to = $config->{ address_for_command };
if (defined $curproc->{ credential }) {
$recipient = $curproc->{ credential }->sender();
@@ -714,12 +715,12 @@ sub queue_in
if ($is_multipart) {
eval q{
$msg = new Mail::Message::Compose
- From => $sender,
- To => $recipient,
- Subject => $subject,
- Type => "multipart/mixed";
+ From => $sender,
+ To => $recipient,
+ Subject => $subject,
+ Type => "multipart/mixed";
};
-
+ $msg->add('Reply-To' => $reply_to);
_add_info_on_header($config, $msg);
if (defined $string) {
@@ -740,12 +741,13 @@ sub queue_in
else {
eval q{
$msg = new Mail::Message::Compose
- From => $sender,
- To => $recipient,
- Subject => $subject,
- Data => $string;
+ From => $sender,
+ To => $recipient,
+ Subject => $subject,
+ Data => $string;
};
$msg->attr('content-type.charset' => $charset);
+ $msg->add('Reply-To' => $reply_to);
_add_info_on_header($config, $msg);
}