sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit eb28079efd788ead7b0c24ba49971f69bcb778c3
parent cd5921ba503f0860b11b68d6d9a9e97a652437e1
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Mon, 27 Jul 2009 20:19:30 -0700

xapian: fix issue with empty ferret query

Diffstat:
M lib/sup/ferret_index.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/ferret_index.rb b/lib/sup/ferret_index.rb
@@ -430,6 +430,7 @@ private
 
   def build_ferret_query query
     q = Ferret::Search::BooleanQuery.new
+    q.add_query Ferret::Search::MatchAllQuery.new, :must
     q.add_query query[:qobj], :must if query[:qobj]
     labels = ([query[:label]] + (query[:labels] || [])).compact
     labels.each { |t| q.add_query Ferret::Search::TermQuery.new("label", t.to_s), :must }