module Mail::Constants

Direct including types

Defined in:

mail/constants.cr

Constant Summary

ASTERISK = "*"
ATOM_UNSAFE = /[\(\)\<\>\[\]\:;@\\\\,\.\"\x00-\x1f\x7f-\xff ]/
B_VALUES = ["B", "b"]
CAPITAL_M = "M"
COLON = ":"
CONTROL_CHAR = /[\x00-\x1f\x7f-\xff]/
CR = "\r"
CR_ENCODED = "=0D"
CRLF = "\r\n"
EMPTY = ""
ENCODED_VALUE = /\=\?([^?]+)\?([QB])\?[^?]*?\?\=/im
EQUAL_LF = "=\n"
FIELD_BODY = /.+/m
FIELD_LINE = /^[\x21-\x39\x3b-\x7e]+:\s*.+$/
FIELD_NAME = /[\x21-\x39\x3b-\x7e]+/
FIELD_PREFIX = /\A(#{FIELD_NAME})/
FIELD_SPLIT = /^(#{FIELD_NAME})\s*:\s*(#{FIELD_BODY})?$/
FULL_ENCODED_VALUE = /(\=\?[^?]+\?[QB]\?[^?]*?\?\=)/im
FWS = /#{LAX_CRLF}#{WSP}*/
HEADER_LINE = /([\x21-\x39\x3b-\x7e]+:\s*.+)/
HEADER_SPLIT = /#{LAX_CRLF}(?!#{WSP})/
HYPHEN = "-"
LAX_CRLF = /\r?\n/
LF = "\n"
LF_ENCODED = "=0A"
NULL_SENDER = "<>"
PHRASE_UNSAFE = /[\(\)\<\>\[\]\:;@\\\\,\.\"\x00-\x1f\x7f-\xff]/
Q_VALUES = ["Q", "q"]
QP_SAFE = /[#{qp_safe}]/
QP_UNSAFE = /[^#{qp_safe}]/
SPACE = " "
TEXT = /[\x1-\x8\xB\xC\xE-\x7f]/
TOKEN_UNSAFE = /[\(\)<>@,;:\\\\\"\/\[\]\?=\x00-\x1f\x7f-\xff ]/
UNDERSCORE = "_"
UNFOLD_WS = /#{LAX_CRLF}(#{WSP})/m
WSP = /[\x9\x20]/