[PATCH 2/3] emacs: use --exclude=false when checking for empty searches

Subject: [PATCH 2/3] emacs: use --exclude=false when checking for empty searches

Date: Tue, 4 Jan 2022 21:06:05 -0400

To: Tomi Ollila, Gregor Zattler, Notmuch Mail


From: David Bremner

In particular tags that only occur on otherwise excluded messages do
not show up in "All tags" without this change. The reported numbers
_do_ take excludes into account, so it is possible that
searches (e.g. the aformentioned tags) will show up with a count of
 emacs/notmuch-hello.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index fc007c4c..fcf7a6aa 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -570,7 +570,7 @@ options will be handled as specified for
 					    (plist-get options :filter))))
     (unless (= (notmuch--call-process-region (point-min) (point-max) notmuch-command
-				    t t nil "count" "--batch") 0)
+				    t t nil "count" "--exclude=false" "--batch") 0)
        "notmuch count --batch failed"
        "Please check that the notmuch CLI is new enough to support `count

notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org