unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: Gregor Zattler <telegraph@gmx.net>, notmuch@notmuchmail.org
Subject: Re: notmuch shows tag which is not on any email
Date: Mon, 04 Jun 2018 21:36:42 +0300	[thread overview]
Message-ID: <87vaaypfet.fsf@nikula.org> (raw)
In-Reply-To: <87h8misay0.fsf@len.workgroup>

On Mon, 04 Jun 2018, Gregor Zattler <telegraph@gmx.net> wrote:
> Dear notmuch developers,
>
> does notmuch remember tags even if at time of query there is no
> message tagged with the respective tag?:
>
> $ notmuch search --output=tags '*' | grep telegraph
> EA%3Dtelegraph%40gmx%2Enet
> EA=telegraph@gmx.net
>
>
> $ notmuch count  -- is:EA%3Dtelegraph%40gmx%2Enet
> 0
>
>
> $ notmuch count  -- is:/EA.*telegraph/
> 4498
>
>
> There is no invisible character or some such:
> $ notmuch search --output=tags '*' | grep telegraph | head -n 1 | wc -c
> 27

Try all of the above with --exclude=false parameter and see if it makes
a difference. If it does, each of the messages tagged with
EA%3Dtelegraph%40gmx%2Enet is probably also tagged with one of the tags
in 'notmuch config get search.exclude_tags'.

> I might have done something wrong while experimenting with this
> tags and  'EA%3Dtelegraph%40gmx%2Enet' may be a leftover.  I
> would like to remove it but since no message matches it's not
> possible to remove it from messages and therefore the tag remains:
>
> $ notmuch tag +EA=telegraph@gmx.net  -- is:/EA.*telegraph/

Try that with

$ notmuch tag +EA=telegraph@gmx.net -EA%3Dtelegraph%40gmx%2Enet -- is:/EA.*telegraph/

to remedy the situation.

BR,
Jani.

> $ notmuch search --output=tags '*' | grep telegraph
> EA%3Dtelegraph%40gmx%2Enet
> EA=telegraph@gmx.net
>
>
> I tried to utilise emacs to remove the tag, but notmuch-emacs
> does not show 'EA%3Dtelegraph%40gmx%2Enet' in notmuch-hello's
> 'All tags' section.
>
>
>
> Why is said tag in the tags listing, how to get rid of it?
>
>
> Thanks, Gregor
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

  parent reply	other threads:[~2018-06-04 18:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04 17:44 notmuch shows tag which is not on any email Gregor Zattler
2018-06-04 18:19 ` Carl Worth
2018-06-04 18:36 ` Jani Nikula [this message]
2018-06-05  5:45   ` Gregor Zattler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vaaypfet.fsf@nikula.org \
    --to=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    --cc=telegraph@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).