thread: Simplify code for assigning the subject.
authorCarl Worth <cworth@cworth.org>
Wed, 21 Apr 2010 22:06:02 +0000 (15:06 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Apr 2010 22:06:02 +0000 (15:06 -0700)
commit36e4459a328b8449b3e9d510be81a332a9b35aaa
treed0b45eaf7516e91cbf91c0b3f638e54fa8937158
parent4971b85641def6b17072ae1b0de0adf15d197f2c
thread: Simplify code for assigning the subject.

We know that matched messages are always added in order, so we can
always just grab the subject from the first message. This is the same
approach that was used previously in _thread_add_message. That is, the
recent feature of renaming a thread based on the subject of the
"first" matched message is as simple as moving the subject assignment
from _thread_add_message to _thread_add_matched_message.
lib/thread.cc