Class: Net::IMAP::UIDFetchData
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/net/imap/fetch_data.rb |
Overview
UIDFetchData
represents the contents of a UIDFETCH
response, When the UIDONLY
extension has been enabled, #uid_fetch and #uid_store will both return an array of UIDFetchData
objects.
UIDFetchData
contains the same message attributes as FetchData
. However, UIDFETCH
responses return the UID at the beginning of the response, replacing FetchData#seqno
. UIDFetchData
never contains a message sequence number.
See FetchStruct documentation for a list of standard message attributes.
Class Method Summary
-
.new ⇒ UIDFetchData
constructor
UIDFetchData
will print a warning if#attr["UID"]
is present but not identical to#uid
.
Constructor Details
.new ⇒ UIDFetchData
UIDFetchData
will print a warning if #attr["UID"]
is present but not identical to #uid
.
# File 'lib/net/imap/fetch_data.rb', line 588
def initialize(...) super attr and attr_uid = attr["UID"] and attr_uid != uid and warn "#{self.class} UIDs do not match (#{attr_uid} != #{uid})" end