Class: Net::IMAP::Envelope

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

Overview

Net::IMAP::Envelope represents envelope structures of messages.

Note

When the #sender and #reply_to fields are absent or empty, they will return the same value as #from. Also, fields may return values that are invalid for well-formed [RFC5322] messages when the message is malformed or a draft message.

See [IMAP4rev1 §7.4.2] and [IMAP4rev2 §7.5.2] for full description of the envelope fields, and Net::IMAP@Message+envelope+and+body+structure for other relevant RFCs.

Returned by FetchData#envelope

Instance Attribute Summary collapse

Instance Attribute Details

#bccObject

Returns the value of attribute bcc

Returns:

  • (Object)

    the current value of bcc



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc

Returns:

  • (Object)

    the current value of cc



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def cc
  @cc
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def date
  @date
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def from
  @from
end

#in_reply_toObject

Returns the value of attribute in_reply_to

Returns:

  • (Object)

    the current value of in_reply_to



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def in_reply_to
  @in_reply_to
end

#message_idObject

Returns the value of attribute message_id

Returns:

  • (Object)

    the current value of message_id



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def message_id
  @message_id
end

#reply_toObject

Returns the value of attribute reply_to

Returns:

  • (Object)

    the current value of reply_to



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def reply_to
  @reply_to
end

#senderObject

Returns the value of attribute sender

Returns:

  • (Object)

    the current value of sender



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def sender
  @sender
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def subject
  @subject
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



574
575
576
# File 'lib/net/imap/response_data.rb', line 574

def to
  @to
end