From 43d2b984523cb17f7b7886c3c911377beae7b504 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 10 Oct 2016 15:28:37 +0200 Subject: Aggregate unread and important status --- common/standardqueries.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/standardqueries.h b/common/standardqueries.h index 07ce637..ccb02a2 100644 --- a/common/standardqueries.h +++ b/common/standardqueries.h @@ -50,7 +50,10 @@ namespace StandardQueries { } query.filter(folder); query.sort(); - query.reduce(Query::Reduce::Selector::max()).count("count"); + query.reduce(Query::Reduce::Selector::max()) + .count("count") + .collect("unreadCollected") + .collect("importantCollected"); return query; } -- cgit v1.2.3