Class: Net::IMAP::Address

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap/response_data.rb

Overview

Net::IMAP::Address represents an electronic mail address, which has been parsed into its component parts by the server. Address objects are returned within Envelope fields.

Group syntax

When the #host field is nil, this is a special form of address structure that indicates the [RFC5322] group syntax. If the #mailbox name field is also nil, this is an end-of-group marker (semicolon in RFC-822 syntax). If the #mailbox name field is non-NIL, this is the start of a group marker, and the mailbox #name field holds the group name phrase.

Instance Attribute Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



797
798
799
# File 'lib/net/imap/response_data.rb', line 797

def host
  @host
end

#mailboxObject

Returns the value of attribute mailbox

Returns:

  • (Object)

    the current value of mailbox



797
798
799
# File 'lib/net/imap/response_data.rb', line 797

def mailbox
  @mailbox
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



797
798
799
# File 'lib/net/imap/response_data.rb', line 797

def name
  @name
end

#routeObject

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



797
798
799
# File 'lib/net/imap/response_data.rb', line 797

def route
  @route
end