class Net::IMAP::ThreadMember
Net::IMAP::ThreadMember represents a thread-node returned by Net::IMAP#thread.
Public Instance Methods
Source
# File lib/net/imap/response_data.rb, line 745
An array of Net::IMAP::ThreadMember objects for mail items that are children of this in the thread.
Source
# File lib/net/imap/response_data.rb, line 753 def to_sequence_set SequenceSet.new all_seqnos end
Returns a SequenceSet containing seqno and all children‘s seqno, recursively.
Protected Instance Methods
Source
# File lib/net/imap/response_data.rb, line 759 def all_seqnos(node = self) [node.seqno].concat node.children.flat_map { _1.all_seqnos } end