Class: TMail::ReturnPathHeader

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

Constant Summary collapse

PARSE_TYPE =
:RETPATH

Constants inherited from HeaderField

HeaderField::FNAME_TO_CLASS

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

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#addrObject



283
284
285
# File 'lib/tmail-pure/header.rb', line 283

def addr
  addrs()[0]
end

#routesObject



292
293
294
295
# File 'lib/tmail-pure/header.rb', line 292

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

#specObject



287
288
289
290
# File 'lib/tmail-pure/header.rb', line 287

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