From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 00B956DE09B0 for ; Sat, 21 Apr 2018 10:38:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.476 X-Spam-Level: X-Spam-Status: No, score=0.476 tagged_above=-999 required=5 tests=[AWL=-0.176, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sIrO0AKEelpP for ; Sat, 21 Apr 2018 10:38:36 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 5B49A6DE0946 for ; Sat, 21 Apr 2018 10:38:35 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id D78B5100084; Sat, 21 Apr 2018 20:38:22 +0300 (EEST) From: Tomi Ollila To: Gregor Zattler , Notmuch Mail Subject: Re: Bug? notmuch-emacs: "All tags" in notmuch-hello does not show all tags In-Reply-To: <87wox1vovj.fsf@len.workgroup> References: <87wox1vovj.fsf@len.workgroup> User-Agent: Notmuch/0.26.1+22~g888240d (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Apr 2018 17:38:38 -0000 On Fri, Apr 20 2018, Gregor Zattler wrote: > Dear notmuch-emacs developers, > > I use a certain tag which until now is only used with regards to > one single message which is also tagged "spam". This certain tag > is among the output of notmuch search --output=tags '*' > > The part of notmuch-hello which is supposed to show "All tags" > does not show this certain tag. But it shows the certain tag with > count = 1 if I remove the tag "spam" from this message. The same > happens if this message is tagged "deleted" instead of "spam". > > > My ~/.notmuch-config contains: > > [search] > exclude_tags=deleted;spam; > > > The relevant section of my customzation.el contains: > > '(notmuch-hello-sections > '(notmuch-hello-insert-search notmuch-hello-insert-saved-searches notmuch-hello-insert-recent-searches > (notmuch-hello-insert-tags-section "All tags" :initially-hidden t nil nil))) > > > I can show the message in question with a search for > (is:spam OR NOT is:spam OR is:deleted OR NOT is:deleted) AND is:certaintag > notmuch-emacs then shows the single message and its tags. Among > those is the certain tag. > > > I expected the certain tag to be shown in the notmuch-hello > section "All tags" and consider it a bug that this is not the case. > > My guess is that somewhere in the code notmuch count is called > without --exclude=false. Hmm. Notmuch emacs client runs `notmuch search --output=tags '*'` and then `notmuch count --batch` for those. If that 'certain' tag was in output of notmuch search --output=tags '*' then I don't see a reason it not showing up (unless it somehow were included in notmuch-hello-hide-tags, but I cannot see how it could be there). I personally don't have any tags excluded and nothing related to *hello* in my ~/.emacs.d/custom.el -- and now that I experimented with [search] exclude_tags I just could not get it to work in any related way (the tag I try to exclude is seen in search --output=tags '*' and in notmuch count --batch outputs... $ notmuch config get search.exclude_tags tbd $ $ notmuch count --batch tag:tbd 1 $ $ notmuch search --output=tags '*' | grep tbd tbd Finally, I tried adding another tag to the one message with this 'tbd' -- and that another tag is shown in "All tags:" output. That doesn't mean there could not be a bug there, just that I cannot reproduce it... Tomi > > > Ciao; Gregor > -- > -... --- .-. . -.. ..--.. ...-.-