class Net::IMAP::UIDFetchData
Net::IMAP::UIDFetchData represents the contents of a UIDFETCH response, When the UIDONLY extension has been enabled, Net::IMAP#uid_fetch and Net::IMAP#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.
Public Class Methods
Source
# 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
UIDFetchData will print a warning if #attr["UID"] is present but not identical to uid.
Public Instance Methods
Source
# File lib/net/imap/fetch_data.rb, line 571
Each key specifies a message attribute, and the value is the corresponding data item. Standard data items have corresponding accessor methods. The definitions of each attribute type is documented on its accessor.
See FetchStruct documentation for message attribute accessors.