From 7c763fa26c7b220e6307448d4bc5fb8143bf68cd Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Oct 2000 07:03:36 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mailread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mailread.rb') diff --git a/lib/mailread.rb b/lib/mailread.rb index ee86d353e..6d59a08fc 100644 --- a/lib/mailread.rb +++ b/lib/mailread.rb @@ -9,7 +9,7 @@ class Mail @header = {} @body = [] begin - while line = f.gets() + f.each do |line| line.chop! next if /^From /=~line # skip From-line break if /^$/=~line # end of header -- cgit