summaryrefslogtreecommitdiff
path: root/lib/mailread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mailread.rb')
-rw-r--r--lib/mailread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mailread.rb b/lib/mailread.rb
index ee86d35..6d59a08 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