summaryrefslogtreecommitdiff
path: root/fml/lib/Mail
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-04-25 04:58:08 +0000
committerfukachan <fukachan>2002-04-25 04:58:08 +0000
commiteb01539d8f1c4a8e34bdffd1fd5c93ab331d1f40 (patch)
tree2161b71606f6eb65770ad9fb5f60a5123061c32d /fml/lib/Mail
parent968738285be8cb52ad61ee7f58a0cdd1265ec0bd (diff)
downloadfml8-eb01539d8f1c4a8e34bdffd1fd5c93ab331d1f40.tar.gz
fml8-eb01539d8f1c4a8e34bdffd1fd5c93ab331d1f40.tar.bz2
fml8-eb01539d8f1c4a8e34bdffd1fd5c93ab331d1f40.zip
check defined($InComingMessage) before $body_size estimation
Diffstat (limited to 'fml/lib/Mail')
-rw-r--r--fml/lib/Mail/Message.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/fml/lib/Mail/Message.pm b/fml/lib/Mail/Message.pm
index 2a97b605..0570f012 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.51 2002/04/13 14:43:09 fukachan Exp $
+# $FML: Message.pm,v 1.52 2002/04/19 05:21:58 fukachan Exp $
#
package Mail::Message;
@@ -516,7 +516,10 @@ sub _parse
}
# read the message (mail body) from the incoming mail
- my $body_size = length($$InComingMessage);
+ my $body_size = 0;
+ if (defined($InComingMessage)) {
+ $body_size = length($$InComingMessage);
+ }
if ($debug > 2) {
print STDERR " (debug) header_size: $header_size\n";