summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-23 04:30:28 +0000
committerfukachan <fukachan>2001-04-23 04:30:28 +0000
commit642dccde8d71f1d962abc865bdb102d69af6b548 (patch)
tree2c67166aad28d60e6ef49abb89785b99a133fabf
parentba0e18cfeb166dadd0f36a56677918eb06eb5346 (diff)
downloadfml8-642dccde8d71f1d962abc865bdb102d69af6b548.tar.gz
fml8-642dccde8d71f1d962abc865bdb102d69af6b548.tar.bz2
fml8-642dccde8d71f1d962abc865bdb102d69af6b548.zip
modify Reply-To: existence check
-rw-r--r--fml/lib/FML/Header.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/fml/lib/FML/Header.pm b/fml/lib/FML/Header.pm
index e90490fb..9f49ad45 100644
--- a/fml/lib/FML/Header.pm
+++ b/fml/lib/FML/Header.pm
@@ -5,7 +5,7 @@
# redistribute it and/or modify it under the same terms as Perl itself.
#
# $Id$
-# $FML: Header.pm,v 1.31 2001/04/14 15:41:05 fukachan Exp $
+# $FML: Header.pm,v 1.32 2001/04/15 05:01:58 fukachan Exp $
#
package FML::Header;
@@ -284,9 +284,14 @@ sub rewrite_subject_tag
sub rewrite_reply_to
{
my ($header, $config, $args) = @_;
- my $reply_to = $header->get('reply-to');
- unless (defined $reply_to) {
+ my $reply_to = $header->get('reply-to') || '';
+
+ unless ($reply_to) {
$header->add('reply-to', $config->{ address_for_post });
+ Log("(debug) rewrite reply-to to $config->{ address_for_post }");
+ }
+ else {
+ Log("(debug) not rewrite 'reply-to: $reply_to'");
}
}