sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit c03a2966480f952db7cecfcfd520564b2a4da726
parent 12f24674e48988082d62bf75db05a57413536c65
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Thu,  4 Jan 2007 21:44:59 +0000

removed spam from subject queries


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

Diffstat:
M lib/sup/index.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -146,6 +146,7 @@ class Index
         sq.add_term t
       end
       q.add_query sq, :must
+      q.add_query Ferret::Search::TermQuery.new(:label, "spam"), :must_not
       q.add_query Ferret::Search::RangeQuery.new(:date, :>= => date_min.to_indexable_s, :<= => date_max.to_indexable_s), :must
 
       pending = @index.search(q).hits.map { |hit| @index[hit.doc][:message_id] }