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



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc

Returns:

  • (Object)

    the current value of cc



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def cc
  @cc
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def date
  @date
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def from
  @from
end

#in_reply_toObject

Returns the value of attribute in_reply_to

Returns:

  • (Object)

    the current value of in_reply_to



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

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



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def message_id
  @message_id
end

#reply_toObject

Returns the value of attribute reply_to

Returns:

  • (Object)

    the current value of reply_to



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def reply_to
  @reply_to
end

#senderObject

Returns the value of attribute sender

Returns:

  • (Object)

    the current value of sender



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def sender
  @sender
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def subject
  @subject
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



528
529
530
# File 'lib/net/imap/response_data.rb', line 528

def to
  @to
end