Class: ActionMailerVerp::BounceProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/action_mailer_verp/bounce_processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(fetcher) ⇒ BounceProcessor

Returns a new instance of BounceProcessor.



3
4
5
# File 'lib/action_mailer_verp/bounce_processor.rb', line 3

def initialize(fetcher)
  @fetcher = fetcher
end

Instance Method Details

#eachObject



7
8
9
10
11
12
# File 'lib/action_mailer_verp/bounce_processor.rb', line 7

def each
  @fetcher.each do |email|
    local = email.to_addrs.first.local
    yield local.split("+").last.gsub("=", "@")
  end
end