Class: ActionMailerVerp::BounceProcessor
- Inherits:
-
Object
- Object
- ActionMailerVerp::BounceProcessor
- Defined in:
- lib/action_mailer_verp/bounce_processor.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(fetcher) ⇒ BounceProcessor
constructor
A new instance of BounceProcessor.
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
#each ⇒ Object
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 |