From: William Morgan Date: Sun, 30 Dec 2007 00:56:37 +0000 (-0800) Subject: stop automatically stripping Re: bits from message subjects when indexing X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d0fcf5c2420f97110f479cde3fbfd594c0b0faa9;p=sup stop automatically stripping Re: bits from message subjects when indexing Rationale: when thread-by-subject is on, whether the subject is a reply or not is actually used by threading to pick a root message (Thread#each). Stripping the Re: header then gives incorrect behavior until the message has been loaded from the source. Currently this isn't really a problem because threading isn't called until all messages have been loaded from source, but in the future we might optimize that a bit, at in the present, it gives weird results when debugging. --- diff --git a/lib/sup/index.rb b/lib/sup/index.rb index 592dc0f..1997c92 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -188,7 +188,7 @@ EOS :label => m.labels.uniq.join(" "), :from => m.from ? m.from.email : "", :to => (m.to + m.cc + m.bcc).map { |x| x.email }.join(" "), - :subject => wrap_subj(Message.normalize_subj(m.subj)), + :subject => wrap_subj(m.subj), :refs => (m.refs + m.replytos).uniq.join(" "), }