diff options
| author | fukachan <fukachan> | 2002-04-26 00:26:23 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-04-26 00:26:23 +0000 |
| commit | c34ea5e9d0316a485880f949f5250d4064ab4cc0 (patch) | |
| tree | 45c8474bcb3e22d19304a6595f082b915a9b9796 /fml | |
| parent | 747f96111bde76da81e84761fa0097d0367d3c06 (diff) | |
| download | fml8-c34ea5e9d0316a485880f949f5250d4064ab4cc0.tar.gz fml8-c34ea5e9d0316a485880f949f5250d4064ab4cc0.tar.bz2 fml8-c34ea5e9d0316a485880f949f5250d4064ab4cc0.zip | |
check defined($InComingMessage) before $body_size estimation
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/Mail/Message.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fml/lib/Mail/Message.pm b/fml/lib/Mail/Message.pm index 0570f012..299a495a 100644 --- a/fml/lib/Mail/Message.pm +++ b/fml/lib/Mail/Message.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: Message.pm,v 1.52 2002/04/19 05:21:58 fukachan Exp $ +# $FML: Message.pm,v 1.53 2002/04/25 04:58:08 fukachan Exp $ # package Mail::Message; @@ -479,7 +479,12 @@ sub parse $ref_body->_prev_message_is( $me ); # return information - $result->{ body_size } = length($$InComingMessage); + if (defined($InComingMessage)) { + $result->{ body_size } = length($$InComingMessage); + } + else { + $result->{ body_size } = 0; + } $me->{ data_info } = $result; # return the object |
