[tracker] tracker-search: Do not use tracker:available for emails



commit 8039cf9fc26aa707eead68a4cd81801559fb2d0e
Author: Jürg Billeter <j bitron ch>
Date:   Wed Sep 15 17:12:08 2010 +0200

    tracker-search: Do not use tracker:available for emails
    
    Fixes NB#190480.

 src/tracker-utils/tracker-search.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index 2280d9a..4c1183e 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -366,10 +366,8 @@ get_emails (TrackerSparqlConnection *connection,
 {
 	gchar *fts;
 	gchar *query;
-	const gchar *show_all_str;
 	gboolean success;
 
-	show_all_str = show_all ? "" : "?email tracker:available true .";
 	fts = get_fts_string (search_terms, use_or_operator);
 
 	if (fts) {
@@ -377,25 +375,21 @@ get_emails (TrackerSparqlConnection *connection,
 		                         "WHERE { "
 		                         "  ?email a nmo:Email ;"
 		                         "  fts:match \"%s\" ."
-		                         "  %s"
 		                         "} "
 		                         "ORDER BY ASC(nmo:messageSubject(?email)) ASC(nmo:receivedDate(?email))"
 		                         "OFFSET %d "
 		                         "LIMIT %d",
 		                         fts,
-		                         show_all_str,
 		                         search_offset,
 		                         search_limit);
 	} else {
 		query = g_strdup_printf ("SELECT nmo:receivedDate(?email) nmo:messageSubject(?email) nie:url(?email) "
 		                         "WHERE { "
 		                         "  ?email a nmo:Email ."
-		                         "  %s"
 		                         "} "
 		                         "ORDER BY ASC(nmo:messageSubject(?email)) ASC(nmo:receivedDate(?email))"
 		                         "OFFSET %d "
 		                         "LIMIT %d",
-		                         show_all_str,
 		                         search_offset,
 		                         search_limit);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]