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 A47D24196F0 for ; Sat, 20 Mar 2010 16:09:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 JueLejX6ZASK for ; Sat, 20 Mar 2010 16:09:02 -0700 (PDT) Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.145]) by olra.theworths.org (Postfix) with ESMTP id 7C195431FC1 for ; Sat, 20 Mar 2010 16:09:02 -0700 (PDT) Received: by qw-out-1920.google.com with SMTP id 9so611443qwj.32 for ; Sat, 20 Mar 2010 16:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:subject :to:in-reply-to:references; bh=vlyoO6U6rU7GpqM/8lTktG5jXg3tQaNG+pm7rKslBMU=; b=qdXEMZz0ZGYxvmUSn3tcgyz4gtUeCR66J4bOJDAMyeu3eXz1ZMH10bDe3nDGgbsN5B 68f8eqLD5OSogXzx8evrrjRCAz8PSJ5lAccb3DoqBgbWZrkGMApIn8X6l1iZsGubEM0s 0vXTOT/V1x+XbmUnylJ1XXWgICd21pQtNwhDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:to:in-reply-to:references; b=hDaSMCRMCCuZGyxnjUzjeE2mjVc2B5PyBycZ5jNVygonem5NUM5W+1yTrC/34ywuae rBajAeuw5+Rak4mfuFV+8sNPu9+o6SswGQLhESWK8bigV3J1eot9w5sP00KKWkjBa4+b poNFvOkae1WFDrcW0w7Gz2rfH56anb89yR0Ic= Received: by 10.224.52.229 with SMTP id j37mr1764541qag.56.1269126541854; Sat, 20 Mar 2010 16:09:01 -0700 (PDT) Received: from localhost (rrcs-69-193-71-165.nys.biz.rr.com [69.193.71.165]) by mx.google.com with ESMTPS id 23sm495539qyk.3.2010.03.20.16.09.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Mar 2010 16:09:00 -0700 (PDT) Message-ID: <4ba5558c.9753f10a.29f6.11d1@mx.google.com> Date: Sat, 20 Mar 2010 16:09:00 -0700 (PDT) From: Ben Gamari To: Sandra Snan , notmuch In-Reply-To: <4ba237eb.0d67f10a.0fba.0105@mx.google.com> References: <4ba01c54.9298cc0a.66cd.7695@mx.google.com> <4ba237eb.0d67f10a.0fba.0105@mx.google.com> Subject: Re: [notmuch] Tag search peculiarities 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: Sat, 20 Mar 2010 23:09:03 -0000 On Thu, 18 Mar 2010 15:27:12 +0100, Sandra Snan wrote: > Hey, Ben. > Ben Gamari wrote: > > notmuch tag -new tag:new and tag:list notmuch tag -new +inbox tag:new > > Is there a new line between the calls? Like: > notmuch tag -new tag:new and tag:list # removes new from list > notmuch tag -new +inbox tag:new # replaces those that still are new with inbox > Eh? They are two separate notmuch invocations. > > However, I found that mailing list traffic was still getting through. > > What do you mean by “through”? Do you mean that there still are > messages tagged both inbox and list? Even though you can’t search for > them? > Yeah, poor choice of words. After the two commands above ran, my mailing list messages were tagged with new, inbox. > If a message is tagged both inbox and list, but not new then the two > lines of your script that you posted so far wouldn’t change it, and it > would still bo both inbox and list. > > It’s risky being so dependent on the new tag. > Eh? I fail to see why. It's no more risky than depending on the inbox tag. > > After investigating further, I found that any query in the form of "tag:inbox > > and tag:$TAG" would return no results. Strangely, all other combinations of tag > > searches (i.e. "tag:lkml and tag:unread") seem to work just fine. > > > > Has anyone else noticed this sort of behavior? Does the inbox tag have some > > special signifigance that I should know of? > > Yes, many versions of the reading client (for example, the version of > notmuch.el that ships with the notmuch package in debian) remove the > inbox tag from messages once you scroll past them or when you press > the key that’s bound to notmuch-show-archive-thread (default is “a”). > I guess I should have been more explicit. I meant in notmuch itself, not the clients. > > Is my index just FUBAR? (the ladder would be very strange > > considering it's only a few days old and I can't think of any > > crashes, etc. that might have corrupted it) Any ideas for debugging? > > Add the tags manually to a few messages, search for them again, and be > sure to not run your tagging script while looking at this problem. > > Michal’s tip, looking at a few lines of notmuch dump, is a good idea > too. Notmuch dump is fast, so don’t be afraid (notmuch restore on the > other hand… but even that completes fast enough.) > > I’ve often been surprised at weird tag situations then realized that > it was old versions of my own scripts that had ran in the background > and I’ve forgotten about it. > Indeed. Hopefully it will be something so simple. I'm currently blissfully unaware of the internals of Xapian, and would really like to remain that way. Thanks, - Ben