summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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