class Net::IMAP::Envelope
Net::IMAP::Envelope represents envelope structures of messages.
- Note
-
When the
senderandreply_tofields are absent or empty, they will return the same value asfrom. 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 Message envelope and body structure at Net::IMAP for other relevant RFCs.
Returned by FetchData#envelope
Public Instance Methods
Source
# File lib/net/imap/response_data.rb, line 705
Returns an array of Address that represents the Bcc header.
Source
# File lib/net/imap/response_data.rb, line 699
Returns an array of Address that represents the Cc header.
Source
# File lib/net/imap/response_data.rb, line 629
Source
# File lib/net/imap/response_data.rb, line 652
Source
# File lib/net/imap/response_data.rb, line 711
Returns a string that represents the In-Reply-To header.
- Note
-
For a well-formed [RFC5322] message, the
in_reply_tofield, if present, must not be empty. But it can still return an empty string for malformed messages.Servers should return
nilwhen the header is absent and an empty string when it is present but empty. Some servers may return anilenvelope member in the “present but empty” case. Clients should treatniland empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 727
Returns a string that represents the Message-ID.
- Note
-
For a well-formed [RFC5322] message, the
message_idfield, if present, must not be empty. But it can still return an empty string for malformed messages.Servers should return
nilwhen the header is absent and an empty string when it is present but empty. Some servers may return anilenvelope member in the “present but empty” case. Clients should treatniland empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 679
Returns an array of Address that represents the Reply-To header.
Source
# File lib/net/imap/response_data.rb, line 666
Returns an array of Address that represents the Sender header.
Source
# File lib/net/imap/response_data.rb, line 640
Returns a string that represents the Subject header, if it is present.
- Note
-
Servers should return
nilwhen the header is absent and an empty string when it is present but empty. Some servers may return anilenvelope member in the “present but empty” case. Clients should treatniland empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 693
Returns an array of Address that represents the To header.