sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit d0fcf5c2420f97110f479cde3fbfd594c0b0faa9
parent 2ef7518d7d4eefc9b3ac4fff8e63a595af8d0c37
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sat, 29 Dec 2007 16:56:37 -0800

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.

Diffstat:
M lib/sup/index.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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(" "),
     }