summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-02-03 11:06:50 +0000
committerfukachan <fukachan>2006-02-03 11:06:50 +0000
commit0a80cc8abd6825a6f50c2b22c8ed329e91a0ecb4 (patch)
tree41a29139c99c8c060d54acf6278c518d025f60b4 /fml/lib
parentb39071a19d29eec69c781564113ac7ca93a3aee8 (diff)
downloadfml8-0a80cc8abd6825a6f50c2b22c8ed329e91a0ecb4.tar.gz
fml8-0a80cc8abd6825a6f50c2b22c8ed329e91a0ecb4.tar.bz2
fml8-0a80cc8abd6825a6f50c2b22c8ed329e91a0ecb4.zip
return <> for error mail sender
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Header.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/fml/lib/FML/Header.pm b/fml/lib/FML/Header.pm
index 71fd7098..30df6eeb 100644
--- a/fml/lib/FML/Header.pm
+++ b/fml/lib/FML/Header.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: Header.pm,v 1.86 2006/01/09 11:04:54 fukachan Exp $
+# $FML: Header.pm,v 1.87 2006/01/09 14:08:07 fukachan Exp $
#
package FML::Header;
@@ -140,6 +140,9 @@ sub address_cleanup
{
my ($self, $addr) = @_;
+ # error is an exception.
+ if ($addr eq '<>') { return $addr;}
+
use Mail::Address;
my (@addrlist) = Mail::Address->parse($addr);
@@ -150,7 +153,7 @@ sub address_cleanup
$addr =~ s/>\s*$//;
# return the result.
- return $addr;
+ return( $addr || "<>" );
}
else {
return undef;