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 625
Returns an array of Address that represents the Bcc header.
Source
# File lib/net/imap/response_data.rb, line 619
Returns an array of Address that represents the Cc header.
Source
Source
# File lib/net/imap/response_data.rb, line 572
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 631
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 647
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 599
Returns an array of Address that represents the Reply-To header.
Source
# File lib/net/imap/response_data.rb, line 586
Returns an array of Address that represents the Sender header.
Source
# File lib/net/imap/response_data.rb, line 560
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 613
Returns an array of Address that represents the To header.