aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r--worker/notmuch/worker.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index 6941809a..28029b26 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -212,11 +212,17 @@ func (w *worker) handleListDirectories(msg *types.ListDirectories) error {
func (w *worker) gatherDirectoryInfo(name string, query string) (
*types.DirectoryInfo, error) {
+ return w.buildDirInfo(name, query, false)
+}
+
+func (w *worker) buildDirInfo(name string, query string, skipSort bool) (
+ *types.DirectoryInfo, error) {
count, err := w.db.QueryCountMessages(query)
if err != nil {
return nil, err
}
info := &types.DirectoryInfo{
+ SkipSort: skipSort,
Info: &models.DirectoryInfo{
Name: name,
Flags: []string{},