123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::FetchData

Relationships & Source Files
Inherits: Object
Defined in: lib/net/imap/fetch_data.rb

Overview

FetchData represents the contents of a FETCH response. #fetch, #uid_fetch, #store, and #uid_store all return arrays of FetchData objects, except when the UIDONLY extension is enabled.

See FetchStruct documentation for a list of standard message attributes.

Instance Method Summary

Instance Method Details

#attrHash

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.

[NOTE:] #seqno is not a message attribute.

[ GitHub ]

  
# File 'lib/net/imap/fetch_data.rb', line 535

rdoc_method :method: attr

#seqnoInteger

The message sequence number.

[NOTE:] This is not the same as the unique identifier (UID), not even for the Net::IMAP#uid_fetch result. The UID is available from #uid, if it was returned.

[NOTE:] UIDFetchData will raise a NoMethodError.

[ GitHub ]

  
# File 'lib/net/imap/fetch_data.rb', line 521

rdoc_method :method: seqno