add the ability to joining threads forcefully to ThreadSet
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 17 Jan 2008 00:44:43 +0000 (16:44 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 17 Jan 2008 00:44:43 +0000 (16:44 -0800)
commit7027f671c35f4b22c6af5ff0b1a58f79a34d41d0
tree5bfb1d4808709735321ec159935cbf931690cc46
parent9a85db9b74cf3ed1e4eb198add8f9071f583621d
add the ability to joining threads forcefully to ThreadSet

ThreadSet#join_threads now takes any number of threads (which must be part
of the threadset) heuristically either picks one message to be the root
(if all messages but one have a "Re:" on the subject line), or creates
a fake root. It updates the message object and marks it dirty so that a
subsequent save will preserve the new structure.
lib/sup/message.rb
lib/sup/thread.rb