Class: ImapMogura::SubjectMatcher
- Inherits:
-
SpecialFieldMatcher
- Object
- RuleElement
- FieldMatcher
- SpecialFieldMatcher
- ImapMogura::SubjectMatcher
- Defined in:
- lib/imap_mogura/rules_parser/rule_elements.rb
Instance Attribute Summary
Attributes inherited from FieldMatcher
Instance Method Summary collapse
Methods inherited from FieldMatcher
Constructor Details
This class inherits a constructor from ImapMogura::FieldMatcher
Instance Method Details
#match?(mail) ⇒ Boolean
116 117 118 119 |
# File 'lib/imap_mogura/rules_parser/rule_elements.rb', line 116 def match?(mail) ("Subject \"#{mail.subject}\" matches the regexp #{@regexp}") debug_out_if_it_matches_rule(mail.subject&.match?(@regexp)) end |