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