diff options
| author | fukachan <fukachan> | 2004-04-02 11:56:26 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-04-02 11:56:26 +0000 |
| commit | af4bcc0ffd4bbbee715f0c22db1ebd3992b59a14 (patch) | |
| tree | 07e0ed5ffd9b23dcf072bdec8ec4d64043049051 /fml/lib/FML/Process/Error.pm | |
| parent | 22badc0f8dd437f6a97ef5f3766f3a3922b0d632 (diff) | |
| download | fml8-af4bcc0ffd4bbbee715f0c22db1ebd3992b59a14.tar.gz fml8-af4bcc0ffd4bbbee715f0c22db1ebd3992b59a14.tar.bz2 fml8-af4bcc0ffd4bbbee715f0c22db1ebd3992b59a14.zip | |
fix reply_message() system to handle smtp_sender properly.
moify libexec/error to forward mail which smtp sender is fml_owner().
Diffstat (limited to 'fml/lib/FML/Process/Error.pm')
| -rw-r--r-- | fml/lib/FML/Process/Error.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fml/lib/FML/Process/Error.pm b/fml/lib/FML/Process/Error.pm index c4566143..2693c937 100644 --- a/fml/lib/FML/Process/Error.pm +++ b/fml/lib/FML/Process/Error.pm @@ -3,7 +3,7 @@ # Copyright (C) 2002,2003,2004 Ken'ichi Fukamachi # All rights reserved. # -# $FML: Error.pm,v 1.41 2004/03/12 11:45:51 fukachan Exp $ +# $FML: Error.pm,v 1.42 2004/03/13 06:03:24 fukachan Exp $ # package FML::Process::Error; @@ -303,18 +303,20 @@ sub _forward_error_message { my ($curproc) = @_; my $config = $curproc->config(); - my $maintainer = $config->{ maintainer }; + my $fml_owner = $curproc->fml_owner_address(); + my $maintainer = $config->{ maintainer } || $fml_owner; my $maps = $config->{ maintainer_recipient_maps } || ''; my $msg = $curproc->incoming_message(); if ($maps) { my $maps = $config->get_as_array_ref('maintainer_recipient_maps'); my $msg_args = { - sender => $maintainer, + smtp_sender => $fml_owner, recipient_maps => $maps, header => { - from => $maintainer, - to => $maintainer, + sender => $fml_owner, + from => $fml_owner, + to => $maintainer, }, }; $curproc->reply_message($msg, $msg_args); |
