Class Redwood::ThreadSet
In: lib/sup/thread.rb
Parent: Object

A set of threads, so a forest. Is integrated with the index and builds thread structures by reading messages from it.

If ‘thread_by_subj’ is true, puts messages with the same subject in one thread, even if they don‘t reference each other. This is helpful for crappy MUAs that don‘t set In-reply-to: or References: headers, but means that messages may be threaded unnecessarily.

The following invariants are maintained: every Thread has at least one Container tree, and every Container tree has at least one Message.

Methods

Attributes

num_messages  [R] 

Public Class methods

Public Instance methods

the heart of the threading code

merges in a pre-loaded thread

merges two threads together. both must be members of this threadset. does its best, heuristically, to determine which is the parent.

load in (at most) num number of threads from the index

loads in all messages needed to thread m may do nothing if m‘s thread is killed

[Validate]