Method: EmailAuthentication::Base#check

Defined in:
lib/email-authentication/base.rb

#check(address, from) ⇒ Object

run all the checks



120
121
122
123
124
125
126
127
128
129
130
# File 'lib/email-authentication/base.rb', line 120

def check(address,from)
  self.set_address(address,from)
  @message=[]
  puts "checking #{@address}"
  ['format','mx','smtp'].each { |cmd| 
      cmdstring="check_#{cmd}"
      res,msg= self.send(cmdstring)
       @flag=@flag && res
       @message << msg }
  [@flag,@message.join(',').to_s]
end