aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-01-04 21:06:06 -0400
committerDavid Bremner <david@tethera.net>2022-01-20 15:32:21 -0400
commitcc180507b03d9826c92d48ee91dbd9bb5f15cd56 (patch)
tree0ff71bc1eda4f3e514be5b87d724d93905632e1f
parent8370e3cfe2dd8a79323613c2bbf2f11db6134dac (diff)
emacs: use --exclude=false when counting total messages
Even if a user excludes a large fraction of their messages, they still nonetheless exist and are searchable.
-rw-r--r--emacs/notmuch-hello.el2
-rwxr-xr-xtest/T440-emacs-hello.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 50b6f303..9ac52c11 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -785,7 +785,7 @@ Complete list of currently available key bindings:
:help-echo "Refresh"
(notmuch-hello-nice-number
(string-to-number
- (car (notmuch--process-lines notmuch-command "count")))))
+ (car (notmuch--process-lines notmuch-command "count" "--exclude=false")))))
(widget-insert " messages.\n")))
(defun notmuch-hello-insert-saved-searches ()
diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh
index dc80cc75..842781a4 100755
--- a/test/T440-emacs-hello.sh
+++ b/test/T440-emacs-hello.sh
@@ -69,7 +69,6 @@ notmuch tag -$tag '*'
test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT
test_begin_subtest "All tags show up"
-test_subtest_known_broken
tag=exclude_me
notmuch tag +$tag '*'
notmuch config set search.exclude_tags $tag