Class: Mailman::Route::CcCondition

Inherits:
Condition
  • Object
show all
Defined in:
lib/mailman/route/conditions.rb

Overview

Matches against the CC header of a message.

Instance Attribute Summary

Attributes inherited from Condition

#matcher

Instance Method Summary collapse

Methods inherited from Condition

inherited, #initialize

Constructor Details

This class inherits a constructor from Mailman::Route::Condition

Instance Method Details

#match(message) ⇒ Object


54
55
56
57
58
59
60
61
62
63
# File 'lib/mailman/route/conditions.rb', line 54

def match(message)
  if !message.cc.nil?
    message.cc.each do |address|
      if result = @matcher.match(address)
        return result
      end
    end
  end
  nil
end