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 391C06DE026D for ; Mon, 4 Jun 2018 11:36:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.029 X-Spam-Level: X-Spam-Status: No, score=0.029 tagged_above=-999 required=5 tests=[AWL=0.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] 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 KLTjod7kX3ew for ; Mon, 4 Jun 2018 11:36:50 -0700 (PDT) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by arlo.cworth.org (Postfix) with ESMTPS id AA6F86DE025F for ; Mon, 4 Jun 2018 11:36:49 -0700 (PDT) Received: by mail-lf0-f46.google.com with SMTP id v135-v6so26801979lfa.9 for ; Mon, 04 Jun 2018 11:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=/ku5ouz8PDzRAYVwAQn16ItX3xjlaIC80wf6QqELxBw=; b=ZuZc2MZ1eFjBkN/SW5dWghKkTF9n/UuyNeGnnuhqIkLgfdkSqHrmHHDzMC/+MiXPWN CIy/AaQBxFbbQ30xBmZGsW2KKrdw8p0AY5tcg9mZfysx4uA2fkvCinw2FPPffVSvRGx4 eUzQglvL7GlLg3ortZ3oxPnJw0z1y1fAD8xEZ7O8+EZQvpXJxlJ38Vc99mN3rWYpBzw8 FHa7ht/bG6+gu5xpxU12Rqdi67Q4hG5Db0bl0u47OflwWPPz17BE5jmVZWJIoBcQgyPH QKL9aEplVdwHJcVwr9+z0Ee1WH81By370sl0w90UcXlL875tso/Np/kPXvp5+HL++koT TUoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=/ku5ouz8PDzRAYVwAQn16ItX3xjlaIC80wf6QqELxBw=; b=g1AiYa85QHE2+Dmfu7TGttroLoZ6z4u51b8CEM0nAzm5IlRhvxOYe925jOa+QqsoL1 p4pN3abz72vyIB5NmJQ/Pl/+JQx8gFGA6UOSbfad1kL/RrHXJLgR0qheKNAwGkP4Cv8T FMxLnQw52gOEFVfuN6x5bjddZl6tWCcRikQJ9QqinVk+KOZ2vilSwEbNJl4mYTOkTdaC QNhLhjYZhRNkOxpmkMiA/zE5CBHEc8ZNW8ypsWsEihRmnM4laKJUHmz3o+cShuy7WIA3 iOMFprAXV25k7ss2WasJj/q4sT9eQGXybrKFMuJKzXvPj8/zzjNrFjZzTEUXz0sEL2Xd mpnw== X-Gm-Message-State: ALKqPwcGTxbYNRQfqgMhN/P10Y75c2zG3IT8Y3s3pgEMkMrPyMsfHuTS mCdfpzuJBD7Q8V+saqWpsMESLg== X-Google-Smtp-Source: ADUXVKKmhCuXuoBOKcYB5keZtWS6my2Q6P/m3u5Bxa0aiWSJCTp62k4vdFDWn5aSL274PBJFAcrvsA== X-Received: by 2002:a19:11e7:: with SMTP id 100-v6mr14216026lfr.111.1528137406631; Mon, 04 Jun 2018 11:36:46 -0700 (PDT) Received: from localhost (82-203-189-109.bb.dnainternet.fi. [82.203.189.109]) by smtp.gmail.com with ESMTPSA id k12-v6sm4040873lje.94.2018.06.04.11.36.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 11:36:46 -0700 (PDT) From: Jani Nikula To: Gregor Zattler , notmuch@notmuchmail.org Subject: Re: notmuch shows tag which is not on any email In-Reply-To: <87h8misay0.fsf@len.workgroup> References: <87h8misay0.fsf@len.workgroup> Date: Mon, 04 Jun 2018 21:36:42 +0300 Message-ID: <87vaaypfet.fsf@nikula.org> 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: Mon, 04 Jun 2018 18:36:51 -0000 On Mon, 04 Jun 2018, Gregor Zattler 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