class Autoreply::Scanner

Attributes

mail[R]

Public Class Methods

new(mail) click to toggle source
# File lib/autoreply/scanner.rb, line 5
def initialize(mail)
  @mail = mail
end

Public Instance Methods

autoreply?() click to toggle source
# File lib/autoreply/scanner.rb, line 9
def autoreply?
  sender_scanner.autoreply?  ||
  subject_scanner.autoreply? ||
  headers_scanner.autoreply? ||
  microsoft_outlook_scanner.autoreply?
end

Private Instance Methods

headers_scanner() click to toggle source
# File lib/autoreply/scanner.rb, line 26
def headers_scanner
  Scanner::Headers.new(mail)
end
microsoft_outlook_scanner() click to toggle source
# File lib/autoreply/scanner.rb, line 30
def microsoft_outlook_scanner
  Scanner::MicrosoftOutlook.new(mail)
end
sender_scanner() click to toggle source
# File lib/autoreply/scanner.rb, line 18
def sender_scanner
  Scanner::Sender.new(mail)
end
subject_scanner() click to toggle source
# File lib/autoreply/scanner.rb, line 22
def subject_scanner
  Scanner::Subject.new(mail)
end