--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 01C406DE099D\r
+ for <notmuch@notmuchmail.org>; Sun, 9 Aug 2015 14:57:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.133\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.133 tagged_above=-999 required=5 tests=[AWL=0.133]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id hRpGkV5uAJrs for <notmuch@notmuchmail.org>;\r
+ Sun, 9 Aug 2015 14:57:19 -0700 (PDT)\r
+Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id EF8F26DE0244\r
+ for <notmuch@notmuchmail.org>; Sun, 9 Aug 2015 14:57:18 -0700 (PDT)\r
+Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1ZOYZL-0008LH-9r; Sun, 09 Aug 2015 21:55:51 +0000\r
+Received: (nullmailer pid 31834 invoked by uid 1000); Sun, 09 Aug 2015\r
+ 21:55:36 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Paul Tarvydas <paultarvydas@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: tags vs. show\r
+In-Reply-To: <55C61F6A.10103@gmail.com>\r
+References: <55C61F6A.10103@gmail.com>\r
+User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 09 Aug 2015 23:55:36 +0200\r
+Message-ID: <87fv3sw2hz.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sun, 09 Aug 2015 21:57:21 -0000\r
+\r
+Paul Tarvydas <paultarvydas@gmail.com> writes:\r
+\r
+> Specifics (linux mint, emacs 24.3.1):\r
+\r
+What version of notmuch?\r
+\r
+> I run this tagging query at the command line:\r
+>\r
+> > notmuch tag +xyz -- '(to:xyz@me.com or from:xyz@me.com or\r
+> > cc:xyz@me.com)'\r
+fwiw, cc: is not a valid search prefix, but I don't think that's\r
+your problem, since that would only effect your tagging step.\r
+[snip]\r
+> Then, I run on the command line:\r
+>\r
+> > notmuch show --format=mbox "tag:xyz" >xyz-all.txt\r
+>\r
+\r
+I tried a couple of tests here, and I could not duplicate your problem\r
+with notmuch 0.20.2. For me, only messages with the tag show up.\r
+\r
+You might want to try the following to debug:\r
+\r
+- compare "notmuch count tag:xyz" with the number of messages recognized\r
+ by e.g. mutt in the mbox.\r
+\r
+- if those two are the same, find one of the message you think should\r
+ not have the tag, and look at it by message-id.\r
+\r
+- if the two are not the same, find a message in the mbox that you think\r
+ should not be there, and double check the tags and headers.\r
+ Note that\r
+\r
+ The to: prefix is used to match the names or addresses of any\r
+ recipient of an email message, (whether To, Cc, or Bcc).\r
+\r
+ to quote notmuch-search-terms(7). One possibility is the existence\r
+ of Bcc headers in some of your messages.\r
+\r
+d\r
+\r