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