sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 16e1052c468fb9c768dffd4e737560c5c2a4d5df
parent 89590ddec72e85e71e84f0dc2fa294d28099b6c4
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Wed, 27 Dec 2006 17:59:31 +0000

better indexing


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@102 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/index.rb | 2 +-
M lib/sup/message.rb | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -25,7 +25,7 @@ class Index
     @dir = dir
     @sources = {}
     @sources_dirty = false
-    @qparser ||= Ferret::QueryParser.new :default_field => :body, :analyzer => Ferret::Analysis::WhiteSpaceAnalyzer.new
+    @qparser ||= Ferret::QueryParser.new :default_field => :body, :analyzer => Ferret::Analysis::WhiteSpaceAnalyzer.new(true)
 
     self.class.i_am_the_instance self
   end
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -199,12 +199,12 @@ class Message
 
   def content
     [
-      from && from.longname,
-      to.map { |p| p.longname },
-      cc.map { |p| p.longname },
-      bcc.map { |p| p.longname },
+      from && (from.name + " " + from.email),
+      to.map { |p| p.name + " " + p.email },
+      cc.map { |p| p.name + " " + p.email },
+      bcc.map { |p| p.name + " " + p.email },
       to_chunks.select { |c| c.is_a? Text }.map { |c| c.lines },
-      subj,
+      Message.normalize_subj(subj),
     ].flatten.compact.join " "
   end