Class: Net::IMAP::UIDFetchData
- Inherits:
-
Object
- Object
- Net::IMAP::UIDFetchData
- Defined in:
- lib/net/imap/fetch_data.rb
Overview
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.
Instance Method Summary collapse
-
#initialize ⇒ UIDFetchData
constructor
UIDFetchData will print a warning if
#attr["UID"]is present but not identical to #uid.
Constructor Details
#initialize ⇒ UIDFetchData
UIDFetchData will print a warning if #attr["UID"] is present but not identical to #uid.
588 589 590 591 592 593 594 |
# 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 |