Class: TMail::ReturnPathHeader

Inherits:
AddressHeader show all
Defined in:
lib/tmail/header.rb

Constant Summary collapse

PARSE_TYPE =
:RETPATH

Constants inherited from HeaderField

HeaderField::FNAME_TO_CLASS

Constants included from TextUtils

TextUtils::ATOM_UNSAFE, TextUtils::CONTROL_CHAR, TextUtils::MESSAGE_ID, TextUtils::MIME_ENCODED, TextUtils::MONTH, TextUtils::NKF_FLAGS, TextUtils::PHRASE_UNSAFE, TextUtils::RFC2231_ENCODED, TextUtils::TOKEN_UNSAFE, TextUtils::WDAY, TextUtils::ZONESTR_TABLE

Instance Method Summary collapse

Methods inherited from AddressHeader

#addrs

Methods inherited from StructuredHeader

#comments

Methods inherited from HeaderField

#accept, #body, #body=, #empty?, #illegal?, #initialize, #inspect, internal_new, new, new_from_port, newobj

Methods included from StrategyInterface

#accept_strategy, create_dest, #decoded, #encoded

Methods included from TextUtils

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

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#addrObject



340
341
342
# File 'lib/tmail/header.rb', line 340

def addr
  addrs()[0]
end

#routesObject



349
350
351
352
# File 'lib/tmail/header.rb', line 349

def routes
  a = addr() or return nil
  a.routes
end

#specObject



344
345
346
347
# File 'lib/tmail/header.rb', line 344

def spec
  a = addr() or return nil
  a.spec
end