class Net::IMAP::SearchResult

def eql?(other)

Hash equality. Unlike #==, order will be taken into account.
def eql?(other)
  return super if modseq.nil?
  self.class == other.class && hash == other.hash
end