Module: Mail::Constants

Included in:
CommonField, Encodings, Header, Message, Utilities
Defined in:
lib/mail/constants.rb

Constant Summary

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

+ obs-text

/[#{text}]/
FIELD_NAME =
/[#{field_name}]+/
FIELD_PREFIX =
/\A(#{FIELD_NAME})/
FIELD_BODY =
/.+/m
FIELD_LINE =
/^[#{field_name}]+:\s*.+$/
FIELD_SPLIT =
/^(#{FIELD_NAME})\s*:\s*(#{FIELD_BODY})?$/
HEADER_LINE =
/^([#{field_name}]+:\s*.+)$/
HEADER_SPLIT =
/#{CRLF}(?!#{WSP})/
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
ENCODED_VALUE =
/\=\?([^?]+)\?([QB])\?[^?]*?\?\=/mi
FULL_ENCODED_VALUE =
/(\=\?[^?]+\?[QB]\?[^?]*?\?\=)/mi
EMPTY =
''
SPACE =
' '
UNDERSCORE =
'_'
HYPHEN =
'-'
COLON =
':'
ASTERISK =
'*'
CR =
"\r"
LF =
"\n"
CR_ENCODED =
"=0D"
LF_ENCODED =
"=0A"
CAPITAL_M =
'M'
EQUAL_LF =
"=\n"
NULL_SENDER =
'<>'
Q_VALUES =
['Q','q']
B_VALUES =
['B','b']