]> git.notmuchmail.org Git - sup/commitdiff
stop automatically stripping Re: bits from message subjects when indexing
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 30 Dec 2007 00:56:37 +0000 (16:56 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 30 Dec 2007 05:04:56 +0000 (21:04 -0800)
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.

lib/sup/index.rb

index 592dc0fbd931bd2d086fa1edac5f769ef47f99d1..1997c922163a12f8f9977a52ea0f5c9fd8fd8f46 100644 (file)
@@ -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(" "),
     }