From 14260932b444e36121fe8f84ad4a1fa65d5730b2 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Oct 2000 09:24:54 +0000 Subject: [PATCH] mailread git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mailread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailread.rb b/lib/mailread.rb index 6d59a08fc9..ee86d353eb 100644 --- a/lib/mailread.rb +++ b/lib/mailread.rb @@ -9,7 +9,7 @@ class Mail @header = {} @body = [] begin - f.each do |line| + while line = f.gets() line.chop! next if /^From /=~line # skip From-line break if /^$/=~line # end of header