diff options
| author | fukachan <fukachan> | 2001-04-11 15:51:55 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-04-11 15:51:55 +0000 |
| commit | 410fa32dfb41b411ee9a282d56aab9c19e2e04cb (patch) | |
| tree | 9e7f456096090e87e83a5b8d19d5d2e2cee4acca /fml/lib | |
| parent | d7770d4aabb5019d6ac06770dab3302052e111a7 (diff) | |
| download | fml8-410fa32dfb41b411ee9a282d56aab9c19e2e04cb.tar.gz fml8-410fa32dfb41b411ee9a282d56aab9c19e2e04cb.tar.bz2 fml8-410fa32dfb41b411ee9a282d56aab9c19e2e04cb.zip | |
return $result if $addr is found ;)
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/Mail/Bounce/Exim.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fml/lib/Mail/Bounce/Exim.pm b/fml/lib/Mail/Bounce/Exim.pm index d30d832a..a6999445 100644 --- a/fml/lib/Mail/Bounce/Exim.pm +++ b/fml/lib/Mail/Bounce/Exim.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: Exim.pm,v 1.4 2001/04/10 11:52:26 fukachan Exp $ +# $FML: Exim.pm,v 1.1 2001/04/10 14:34:19 fukachan Exp $ # @@ -63,11 +63,12 @@ sub analyze my $m = $msg->rfc822_message_header(); my $addr = $m->get('X-Failed-Recipients'); - $addr =~ s/\s*$//; - - # set up return buffer - $result->{ $addr }->{ 'Final-Recipient' } = $addr; - $result->{ $addr }->{ 'Status' } = '5.x.y'; + # set up return buffer if $addr is found. + if ($addr) { + $addr =~ s/\s*$//; + $result->{ $addr }->{ 'Final-Recipient' } = $addr; + $result->{ $addr }->{ 'Status' } = '5.x.y'; + } } =head1 AUTHOR |
