class CrystalEmail::Rfc1123::Public

Overview

Internet realist version of {Rfc5322}. It requires 2 names (a.b).

Defined in:

CrystalEmail/rfc1123/public.cr

Constant Summary

ATOM_FIRST = "#{ATEXT_FIRST_FIRST}#{ATEXT_ALL}{1,62}"

!! changes with the basi rfc ({1,62} ATEX_ALL instead of {0,62}) a valid string for domain part (first name)

DOT_ATOM_TEXT = "((#{ATOM_ALL}\\.)+#{ATOM_FIRST})"

!! changes with the basi rfc (ATOM_ALL+ instead of ATOM_ALL*) a valid string with subdomains, separated by dots for domain part as Domain Name

REGEXP = /\A#{VALIDE}\Z/
VALIDE = "(?<domain>(?!.{254,})((#{DOT_ATOM_TEXT})))"

email grammar

Class Method Summary

Class methods inherited from class CrystalEmail::Rfc1123

regexp regexp

Class methods inherited from class CrystalEmail::Core

match(str : String) match, regexp regexp, validates?(str : String) : Bool validates?

Class Method Detail

def self.regexp #

[View source]