From: Jani Nikula Date: Wed, 24 Apr 2013 08:04:19 +0000 (+0200) Subject: Re: remove unused tags from the database / emacs ui? X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1fa332242be23d9a8d88081ed3fa989255949a2;p=notmuch-archives.git Re: remove unused tags from the database / emacs ui? --- diff --git a/cd/12d56b323ed99786fba5b7ac779a1b13480c2f b/cd/12d56b323ed99786fba5b7ac779a1b13480c2f new file mode 100644 index 000000000..531f74dbc --- /dev/null +++ b/cd/12d56b323ed99786fba5b7ac779a1b13480c2f @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0A820431FB6 + for ; Wed, 24 Apr 2013 01:04:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id Iod80yUPcCH9 for ; + Wed, 24 Apr 2013 01:04:28 -0700 (PDT) +Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com + [74.125.83.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 83826431FAF for ; Wed, 24 Apr 2013 01:04:28 -0700 + (PDT) +Received: by mail-ee0-f47.google.com with SMTP id b57so593099eek.20 + for ; Wed, 24 Apr 2013 01:04:27 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=x-received:from:to:subject:in-reply-to:references:user-agent:date + :message-id:mime-version:content-type:x-gm-message-state; + bh=Q6Hs1O/wbw+7NE6BKF0mJV8sJP3gVZtpbGk/RQu4IMM=; + b=U+Dl7+0duJkctocYq6rVH/3+uW62T+rBkJ2AiHOtnmUmjXa7D2+qv4XEoaoDPqzasQ + jwlRL8mNsl69gF7FjM5puOTJPkQl3YuEmOpOlfjgId+9Em2FxOZG8gwPgTRWprbUi7mj + pryWioGmW6TJMAn1AMYqw9JAcV5VAd+wKEgUrCrHQCrIlENVQ0z0PAf5hemy7ISoXLkt + Gkwt745+zPgSkqQWIedjwHGte9WhorH0QSqQwPz/w4vla5kY8iribFN6xFNb+6qi+z9i + XXwusEmrTxxmxhi08YKgdHWVTZ3eo0PvI4pr0fkVklZvmlWy5CpCMqF+rW8SEtkZqPYU + aeig== +X-Received: by 10.14.9.71 with SMTP id 47mr16335252ees.21.1366790667248; + Wed, 24 Apr 2013 01:04:27 -0700 (PDT) +Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) + by mx.google.com with ESMTPSA id cd3sm2355887eeb.6.2013.04.24.01.04.25 + for + (version=TLSv1.1 cipher=RC4-SHA bits=128/128); + Wed, 24 Apr 2013 01:04:26 -0700 (PDT) +From: Jani Nikula +To: ingo , notmuch@notmuchmail.org +Subject: Re: remove unused tags from the database / emacs ui? +In-Reply-To: <1366788660323-4027748.post@n3.nabble.com> +References: <1366788660323-4027748.post@n3.nabble.com> +User-Agent: Notmuch/0.15.2+34~ga90fdd9 (http://notmuchmail.org) Emacs/23.2.1 + (x86_64-pc-linux-gnu) +Date: Wed, 24 Apr 2013 10:04:19 +0200 +Message-ID: <87vc7cnym4.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Gm-Message-State: + ALoCoQmjO+M8GoSYZmeoKdRFaO878FPuwceCDCL8UdGFI8GGF8h8VecoZjL88IjdsPQGf7qop7a/ +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Wed, 24 Apr 2013 08:04:30 -0000 + +On Wed, 24 Apr 2013, ingo wrote: +> I have some tags which were created by afew tests, or just misspelling tags. +> These tags are now unused, but seem to still be in the database, or cached +> in the emacs ui, because I get these tags as possibilities in "add tags" +> list. + +Apparently you still have some messages tagged with these tags. You can +get a list of all the tags in all the messages in the database using: + +$ notmuch search --output=tags '*' + +Or view the "All tags" section in notmuch-hello in Emacs. There you can +also query which messages have these "undesirable" tags. + +> Any ideas on how I can get rid of them? + +On the command line, if you wanted, for example, "foo" and "bar" tags +removed from all the messages: + +$ notmuch tag -foo -bar -- '*' + +Alternatively, do a search for all messages in emacs, and hit '*' in the +search view to tag all messages matching the query. List the ones you +want removed. + + +HTH, +Jani.