# File lib/bounce.rb, line 20 def parse(&block) address=nil mesage=nil bounces=0 @bounce_io.each do |line| break if line =~ /^--- Below this line is a copy of the message\./ if line =~ /^<(\S+)>:/ address = $1 message='' bounces += 1 elsif bounces==0 next #elsif line ~! /\S/ # empty # yield address, message elsif line =~ /Remote host said: (.+)/ yield address, $1 #message += line end end bounces end