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 626
Returns an array of Address that represents the Bcc header.
Source
# File lib/net/imap/response_data.rb, line 620
Returns an array of Address that represents the Cc header.
Source
Source
# File lib/net/imap/response_data.rb, line 573
Returns an array of Address that represents the From header.
If the From header is absent, or is present but empty, the server returns nil for this envelope field.
Source
# File lib/net/imap/response_data.rb, line 632
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 648
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 600
Returns an array of Address that represents the Reply-To header.
Source
# File lib/net/imap/response_data.rb, line 587
Returns an array of Address that represents the Sender header.
Source
# File lib/net/imap/response_data.rb, line 561
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 614
Returns an array of Address that represents the To header.