Skip to content

Releases: truemail-rb/truemail

v0.1.7

17 Apr 10:30
42e0b7e
Compare
Choose a tag to compare
  1. Added PTR record audit, #18
  2. Updated gem documentation
  3. Updated gem wiki
  4. Updated gem version to 0.1.7

P.S.: Thanks @AlexeyDemidov for PTR check feature idea.

v0.1.6

08 Apr 11:09
Compare
Choose a tag to compare

Fixed MX gem logic with RFC 7505: https://tools.ietf.org/html/rfc7505

  1. Added null MX record supporting, #27
  2. Added multihomed MX records supporting, #28
  3. Added contributing guideline
  4. Updated gem documentation
  5. Updated gem wiki
  6. Updated gem version to 0.1.6

P.S.: Thanks @AlexeyDemidov for analysis and tips for improvement/correction Truemail MX logic.

v0.1.5

05 Apr 12:44
23a02e6
Compare
Choose a tag to compare
  1. Added retries for Truemail::Validate::Smtp for cases when one mx server
  2. Updated Truemail::Configuration class, please use .connection_attempts instead .retry_count
  3. Updated gem documentation
  4. Updated gem wiki
  5. Updated gem version to 0.1.5

v0.1.4

01 Apr 12:57
7bf5f37
Compare
Choose a tag to compare

Fixed MX gem logic with RFC 5321: https://tools.ietf.org/html/rfc5321#section-5

  1. Added checking A record presence if MX and CNAME records not exist, #10
  2. Added handling of CNAME records, #11
  3. Added checking A record if MX and CNAME records not found, #12
  4. Added supporting of multihomed MX records, conversion host names to ips, #17
  5. Timeout configuration for DNS resolver, #13
  6. Added .valid? helper
  7. Updated gem version to 0.1.4

P.S.: Thanks @AlexeyDemidov for deep analysis Truemail gem logic.

v0.1.3

27 Mar 13:31
01f9de3
Compare
Choose a tag to compare
  1. Fixed default REGEX_EMAIL_PATTERN #7:
  • local part of address can't start with a dot or special symbol
  • local part of address can include + symbol
  1. Fixed default REGEX_DOMAIN_PATTERN #8:
  • TLD size increased up to 63 characters
  1. Fixed bug with case sensitive domain names #9:
  2. Added independent domain name extractor to Truemail::Validate::Mx#run
  3. Updated gem version to 0.1.3

P.S.: Thanks @AlexeyDemidov for deep analysis Truemail gem logic.

v0.1.2

26 Mar 07:25
Compare
Choose a tag to compare

Added 'SMTP safe check' option for cases when SMTP server does not return an exact answer that the email does not exist.

Truemail.configure do |config|
  config.verifier_email = '[email protected]'
  config.smtp_safe_check = true
end

Truemail.validate('[email protected]')

# Successful SMTP validation
=> #<Truemail::Validator:0x0000000002ca2c70
    @result=
      #<struct Truemail::Validator::Result
        success=true,
        email="[email protected]",
        domain="example.com",
        mail_servers=["mx1.example.com"],
        errors={},
        smtp_debug=
          [#<Truemail::Validate::Smtp::Request:0x0000000002c95d40
            @configuration=
              #<Truemail::Configuration:0x0000000002c95b38
                @connection_timeout=2,
                @email_pattern=/regex_pattern/,
                @response_timeout=2,
                @smtp_safe_check=true,
                @validation_type_by_domain={},
                @verifier_domain="example.com",
                @verifier_email="[email protected]">,
              @email="[email protected]",
              @host="mx1.example.com",
              @response=
                #<struct Truemail::Validate::Smtp::Response
                  port_opened=true,
                  connection=false,
                  helo=
                    #<Net::SMTP::Response:0x0000000002c934c8
                    @status="250",
                    @string="250 mx1.example.com\n">,
                  mailfrom=false,
                  rcptto=nil,
                  errors={:mailfrom=>"554 5.7.1 Client host blocked\n", :connection=>"server dropped connection after response"}>>,]>,
    @validation_type=:smtp>