Class: Autoreply::Scanner::Headers::ByExistance

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

Constant Summary collapse

KNOWN_HEADERS =
%w(
  list-help
  list-unsubscribe
  list-subscribe
  list-owner
  list-post
  list-archive
  list-id
  mailing-list
  x-facebook-notify
  x-mailing-list
  x-cron-env
  x-autoresponse
  x-ebay-mailtracker
  x-autoresponder
  x-autorespond
  auto-submitted
)

Instance Attribute Summary

Attributes inherited from Base

#header_fields

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#autoreply?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/autoreply/scanner/headers/by_existance.rb', line 22

def autoreply?
  !(KNOWN_HEADERS & detected_headers).empty?
end