Module: Mail::Patterns

Included in:
Encodings, Field, Header, Message, Utilities
Defined in:
lib/mail/patterns.rb

Constant Summary collapse

CRLF =
/\r\n/
WSP =
/[#{white_space}]/
FWS =
/#{CRLF}#{WSP}*/
TEXT =

+ obs-text

/[#{text}]/
FIELD_NAME =
/[#{field_name}]+/
FIELD_BODY =
/.+/
FIELD_LINE =
/^[#{field_name}]+:\s*.+$/
HEADER_LINE =
/^([#{field_name}]+:\s*.+)$/
QP_UNSAFE =
/[^#{qp_safe}]/
QP_SAFE =
/[#{qp_safe}]/
CONTROL_CHAR =
/[#{control}]/n
ATOM_UNSAFE =
/[#{Regexp.quote aspecial}#{control}#{sp}]/n
PHRASE_UNSAFE =
/[#{Regexp.quote aspecial}#{control}]/n
TOKEN_UNSAFE =
/[#{Regexp.quote tspecial}#{control}#{sp}]/n