From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SJi5KSy96WGwewAAgWs5BA (envelope-from ) for ; Thu, 20 Jan 2022 20:51:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IJJYJyy96WEEEQAA9RJhRA (envelope-from ) for ; Thu, 20 Jan 2022 20:51:08 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3F9543F5B6 for ; Thu, 20 Jan 2022 20:51:08 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 774455F705; Thu, 20 Jan 2022 19:51:05 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C08B95F6D1 for ; Thu, 20 Jan 2022 19:51:02 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id AA0BD5FC01; Thu, 20 Jan 2022 14:51:01 -0500 (EST) Received: (nullmailer pid 363973 invoked by uid 1000); Thu, 20 Jan 2022 19:51:00 -0000 From: David Bremner To: Tomi Ollila , Gregor Zattler , Notmuch Mail Subject: Re: Bug? notmuch-emacs: "All tags" in notmuch-hello does not show all tags In-Reply-To: References: <87wox1vovj.fsf@len.workgroup> <877ep0kx52.fsf@len.workgroup> Date: Thu, 20 Jan 2022 15:51:00 -0400 Message-ID: <871r12gp97.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: HNVPBETEUDY2E4A3B4UABB45DT6QGK5U X-Message-ID-Hash: HNVPBETEUDY2E4A3B4UABB45DT6QGK5U X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642708268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=yPkC9DMp9n43TxfmefL9EEYu0cO5d6Suw5XxOfUQ3z8=; b=XZU1xEGm2sMG/POSJv3oDRxkjRAiOagno95gFjYpP2OtSVVO6spz0MpHqHu+su0ZkHYXBR g5NabRKBb2+kOwr/hsnSkZjOQ31ZKG7v7jher0XWrPpGbTmJwxlN/YWDiQoWW5KwZZgK23 eQQ4OfpoJyvYa9AdwxwGLMloYky0LXGmoJb3VQ1YE6MyPvUO1ccM7plRR4HbMJi1TZazv5 miR4nag0i7c6kaLWxSjrOFtX+azAY123Bs5yVLQ/R/JwDLl01mvAZS7P9e9Y34dr6ewy+J 5PkHbH0iN8gedA+eQKYE5pUqjnF1xk+zOhgUE6E8XyyuqhWApc8P/Wl9P2ZSKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642708268; a=rsa-sha256; cv=none; b=kia/nrmKlwBbAhc06GDjrIXD4Enep6gXC+HS+VUzjbZu68lb1EFueP2TOVb6vcuCk2CgbX BF3z9HzyhHWruub8pQ8PNcQ1ui7y4WxNmqxjrNigMOrgIl7CpSfkwgZ0Hm3ZBoUst4r7E/ 2qTyP24j8dazlzjy3WPiPaapyJ+RuhYaNugSxUmEPXtY0t5PnL3JUGlsgwaWRFhedsQXWb 1upeXpY02NaWbXJrWBQ8SxDOH8RTdDQgTfSiM9F2zIvJqh5l41tmcjpntwIAZvV19dhJp3 NrkJT9PmiweS6fE7RaTEBAF2WoKUEgEuIypsEQi4ua1wKXhytXg5M1mtgveMFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3F9543F5B6 X-Spam-Score: -2.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3SEeRHdVzFGL Tomi Ollila writes: > On Sun, Apr 22 2018, Gregor Zattler wrote: > >> Hi Tomi, notmuch-emacs developers, >> * Tomi Ollila [2018-04-21; 20:38]: >> [...] >>> That doesn't mean there could not be a bug there, just >>> that I cannot reproduce it... >> >> Thanks for your investigation. >> >> I now prepared a minimal example, please extract the archive in >> /tmp. It contains a quite minmalistic .notmuch-config, a Maildir >> with one email and a test script which runs notmuch new, notmuch >> tag, starts emacs with no configuration and hopefully shows >> notmuch-hello.[1] Please klick on "show", you'll see only one >> tag: "spam", klick on "spam" you'll see this one email shown with >> its four (!) tags: "inbox", "new" and "certaintag" are not shown >> in "All tags". >> >> At least this is what I see with emacs25 and emacs27 and current >> notmuch. >> >> Do you see the same? > > > Yes, I can reproduce -- only "spam" is seen > > To look what happened I ran (in notmuch source dir): > > $ NOTMUCH_CONFIG=/tmp/.notmuch-config strace -f -e trace=execve,read,write -o ttt ./devel/try-emacs-mua -Q > > based on that output: > > $ NOTMUCH_CONFIG=/tmp/.notmuch-config notmuch search --output=tags '*' > certaintag > inbox > new > spam > > $ NOTMUCH_CONFIG=/tmp/.notmuch-config notmuch count --batch > tag:certaintag > 0 > tag:new > 0 > tag:spam > 1 > tag:inbox > 0 > tag:foobar > 0 > > NOTMUCH_CONFIG=/tmp/.notmuch-config notmuch count --batch --exclude=false > tag:certaintag > 1 > tag:new > 1 > tag:spam > 1 > tag:inbox > 1 > > 1 > tag:foobar > 0 > > So, currently, whenever count is zero, the tag is now shown in all tags > listing (but we know we have the tag since queried earlier). But, at least > in this case we should get real count and have that '--exclude=false' there, > and then the count is always positive number. > > At least some SMOP is required to get this fixed. > > Tomi This bug should be fixed in commit cc180507b03d9826c92d48ee91dbd9bb5f15cd56 d