Class: Autoreply::Scanner::Sender

Inherits:
Base
  • Object
show all
Defined in:
lib/autoreply/scanner/sender.rb

Constant Summary collapse

KNOWN_SENDER_REGEXPS =
[
  /^owner-/,
  /^request-/,
  /-request@/,
  /bounce.*@/,
  /-confirm@/,
  /-errors@/,
  /^no[-]?reply/,
  /^donotreply/,
  /^postmaster@/,
  /^mailer[-_]daemon@/,
  /^mailer@/,
  /^listserv@/,
  /^majordom[o]?@/,
  /^mailman@/,
  /^nobody@/,
  /^bounce/,
  /^www(-data)?@/,
  /^mdaemon@/,
  /^root@/,
  /^news(letter)?@/,
  /^webmaster@/,
  /^administrator@/,
  /^support@/
]

Instance Attribute Summary

Attributes inherited from Base

#mail

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Autoreply::Scanner::Base

Instance Method Details

#autoreply?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/autoreply/scanner/sender.rb', line 29

def autoreply?
  !detected_senders.empty?
end