class Net::IMAP::Envelope
Net::IMAP::Envelope
represents envelope structures of messages.
- Note
-
When the
sender
andreply_to
fields 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 673
Returns an array of Address
that represents the Bcc
header.
Source
# File lib/net/imap/response_data.rb, line 667
Returns an array of Address
that represents the Cc
header.
Source
Source
# File lib/net/imap/response_data.rb, line 620
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 679
Returns a string that represents the In-Reply-To
header.
- Note
-
For a well-formed [RFC5322] message, the
in_reply_to
field, if present, must not be empty. But it can still return an empty string for malformed messages.Servers should return
nil
when the header is absent and an empty string when it is present but empty. Some servers may return anil
envelope member in the “present but empty” case. Clients should treatnil
and empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 695
Returns a string that represents the Message-ID
.
- Note
-
For a well-formed [RFC5322] message, the
message_id
field, if present, must not be empty. But it can still return an empty string for malformed messages.Servers should return
nil
when the header is absent and an empty string when it is present but empty. Some servers may return anil
envelope member in the “present but empty” case. Clients should treatnil
and empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 647
Returns an array of Address
that represents the Reply-To
header.
Source
# File lib/net/imap/response_data.rb, line 634
Returns an array of Address
that represents the Sender
header.
Source
# File lib/net/imap/response_data.rb, line 608
Returns a string that represents the Subject
header, if it is present.
- Note
-
Servers should return
nil
when the header is absent and an empty string when it is present but empty. Some servers may return anil
envelope member in the “present but empty” case. Clients should treatnil
and empty string as identical.
Source
# File lib/net/imap/response_data.rb, line 661
Returns an array of Address
that represents the To
header.