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 722
Returns an array of Address that represents the Bcc header.
Source
# File lib/net/imap/response_data.rb, line 716
Returns an array of Address that represents the Cc header.
Source
# File lib/net/imap/response_data.rb, line 646
Source
# File lib/net/imap/response_data.rb, line 669
Source
# File lib/net/imap/response_data.rb, line 728
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 744
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 696
Returns an array of Address that represents the Reply-To header.
Source
# File lib/net/imap/response_data.rb, line 683
Returns an array of Address that represents the Sender header.
Source
# File lib/net/imap/response_data.rb, line 657
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 710
Returns an array of Address that represents the To header.