summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-10 09:24:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-10 09:24:54 +0000
commit14260932b444e36121fe8f84ad4a1fa65d5730b2 (patch)
treeacdcf9a2b32c959ac87e189ac0aa1592dc355a7a
parentc5cd237f47c6559bc23f17826ce8df2bfcd8c2ec (diff)
mailread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/mailread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mailread.rb b/lib/mailread.rb
index 6d59a08fc9e..ee86d353eb8 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