The SubjectThread class models a simple thread. Not a pretty tree or even DAG, just a set of messages and a subject.
The SubjectThread class is meant to be small, small and small: Sometimes (perhaps often) we need to keep SubjectThread objects for an entire Mailbox in RAM. Size is more important than functionality.
If an IMAP THREAD command needs to return a tree, it has to compute the tree itself. This class can help make that simpler, that's all.
If an ArchiveThread needs to display information about some/all threads, this class can help make it simpler, but it isn't sufficient in and of itself.
The Threader creates and updates SubjectThread objects.
Constructs an empty Thread.
Records that uid is a member of this thread.
Returns the database ID of this thread, or 0 if the thread still isn't recorded in the database. 0 is perfectly possible - Threader will notify its users as soon as it can, even if the thread IDs aren't known yet.
Returns all the members of this thread. This may include deleted messages.
Records that id is the database ID of this thread.
Records that subject is the base subject of this thread (ie. without "re", "fwd" or similar).
Returns whatever was set by setSubject(), or an empty string initially.
This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.