Module: TMail::TextUtils

Module | TMail::TextUtils
In: | lib/action_mailer/vendor/tmail-1.1.0/tmail/utils.rb

### Methods

atom_safe? decode_RFC2231 decode_params join_domain message_id? mime_encoded? quote_atom quote_boundary quote_phrase quote_token time2str timezone_string_to_unixtime to_kcode token_safe? unquote

### Constants

ATOM_UNSAFE | = | /[#{Regexp.quote aspecial}#{control}#{lwsp}]/n
PHRASE_UNSAFE | = | /[#{Regexp.quote aspecial}#{control}]/n
TOKEN_UNSAFE | = | /[#{Regexp.quote tspecial}#{control}#{lwsp}]/n
CONTROL_CHAR | = | /[#{control}]/n
ZONESTR_TABLE | = | { 'jst' => 9 * 60, 'eet' => 2 * 60, 'bst' => 1 * 60, 'met' => 1 * 60, 'gmt' => 0, 'utc' => 0, 'ut' => 0, 'nst' => -(3 * 60 + 30), 'ast' => -4 * 60, 'edt' => -4 * 60, 'est' => -5 * 60, 'cdt' => -5 * 60, 'cst' => -6 * 60, 'mdt' => -6 * 60, 'mst' => -7 * 60, 'pdt' => -7 * 60, 'pst' => -8 * 60, 'a' => -1 * 60, 'b' => -2 * 60, 'c' => -3 * 60, 'd' => -4 * 60, 'e' => -5 * 60, 'f' => -6 * 60, 'g' => -7 * 60, 'h' => -8 * 60, 'i' => -9 * 60, # j not use 'k' => -10 * 60, 'l' => -11 * 60, 'm' => -12 * 60, 'n' => 1 * 60, 'o' => 2 * 60, 'p' => 3 * 60, 'q' => 4 * 60, 'r' => 5 * 60, 's' => 6 * 60, 't' => 7 * 60, 'u' => 8 * 60, 'v' => 9 * 60, 'w' => 10 * 60, 'x' => 11 * 60, 'y' => 12 * 60, 'z' => 0 * 60
WDAY | = | %w( Sun Mon Tue Wed Thu Fri Sat TMailBUG )
MONTH | = | %w( TMailBUG Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec TMailBUG )
MESSAGE_ID | = | /<[^\@>]+\@[^>\@]+>/
MIME_ENCODED | = | /=\?[^\s?=]+\?[QB]\?[^\s?=]+\?=/i
NKF_FLAGS | = | { 'EUC' => '-e -m', 'SJIS' => '-s -m'
RFC2231_ENCODED | = | /\A(?:iso-2022-jp|euc-jp|shift_jis|us-ascii)?'[a-z]*'/in

### Public Instance methods

atom_safe?( str )
decode_RFC2231( str )
decode_params( hash )
join_domain( arr )
message_id?( str )
mime_encoded?( str )
quote_atom( str )
quote_boundary()
quote_phrase( str )
quote_token( str )
time2str( tm )
timezone_string_to_unixtime( str )
to_kcode( str )
token_safe?( str )
unquote( str )

[Validate]