unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Navin Kabra <navin@smriti.com>
To: notmuch@notmuchmail.org
Subject: Inconsistency between tag database and notmuch search
Date: Fri, 17 Mar 2017 15:28:25 +0530	[thread overview]
Message-ID: <86efxw2pj2.fsf@smriti.com> (raw)


I've managed to get my notmuch tag database in an inconsistent 
state and
can't figure out how to fix it. Because of this I have "unread" 
messages sitting in my inbox permanently and I can't get rid of 
them.

Specifically, I have a few threads/messages that don't have any 
tags,
but still show up in notmuch search for those tags. And using
notmuch tag to remove (or add) any tags on these threads has no 
effect. Doing a `notmuch compact` does not fix this issue.

(I believe I managed to do this by running some notmuch commands 
while a
`xapian-compact` was running in the background.)

Here are some commands that demonstrate the problem:

    ~$ notmuch --version
    notmuch 0.23.5

    ~$ notmuch search thread:0000000000058ca0
    thread:0000000000058ca0  February 22 [1/1] Mandar Joshi; 
    Announcing TiECon Pune 2017 - Pune's largest, most energizing 
    startup event! ()

    ~$ notmuch search thread:0000000000058ca0 and tag:inbox
    thread:0000000000058ca0  February 22 [1/1] Mandar Joshi; 
    Announcing TiECon Pune 2017 - Pune's largest, most energizing 
    startup event! ()

    ~$ notmuch tag -inbox thread:0000000000058ca0 

    ~$ notmuch search thread:0000000000058ca0 
    thread:0000000000058ca0  February 22 [1/1] Mandar Joshi; 
    Announcing TiECon Pune 2017 - Pune's largest, most energizing 
    startup event! ()

    ~$ notmuch tag +inbox thread:0000000000058ca0 

    ~$ notmuch search thread:0000000000058ca0 
    thread:0000000000058ca0  February 22 [1/1] Mandar Joshi; 
    Announcing TiECon Pune 2017 - Pune's largest, most energizing 
    startup event! ()


As you can see from the `()` at the end of the notmuch search 
output, this thread has no tags associated with it. And still, it 
is showing up in the notmuch search output.

What should I do to get rid of these messages from the notmuch 
search output?

             reply	other threads:[~2017-03-17 10:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17  9:58 Navin Kabra [this message]
2017-03-17 12:37 ` Inconsistency between tag database and notmuch search David Bremner
2017-03-20  7:57   ` Navin Kabra
2017-03-20  9:59     ` David Bremner
2017-03-20 10:13       ` Navin Kabra

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=86efxw2pj2.fsf@smriti.com \
    --to=navin@smriti.com \
    --cc=notmuch@notmuchmail.org \
    /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).