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 C7DFF431FD0 for ; Thu, 6 Oct 2011 13:40:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 P4ojXgOAFvTl for ; Thu, 6 Oct 2011 13:40:02 -0700 (PDT) Received: from ipex3.johnshopkins.edu (ipex3.johnshopkins.edu [128.220.161.140]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2A180431FB6 for ; Thu, 6 Oct 2011 13:40:02 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAAASjk4KoSAO/2dsb2JhbABCqTiBUwEBBTpPCxgJJQ8BHCsGARK3VYkBhywEk26RYg X-IronPort-AV: E=Sophos;i="4.68,498,1312171200"; d="scan'208";a="149255726" Received: from watt.hwcampus.jhu.edu ([10.161.32.14]) by ipex3.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA; 06 Oct 2011 16:40:00 -0400 Received: by watt.hwcampus.jhu.edu (Postfix, from userid 502) id DAD47A49B0C; Thu, 6 Oct 2011 16:40:00 -0400 (EDT) From: Jesse Rosenthal To: David Bremner , Jameson Graef Rollins , Notmuch Mail Subject: Re: tag sharing In-Reply-To: <87zkhduax2.fsf@convex-new.cs.unb.ca> References: <1306619520-25730-1-git-send-email-jrollins@finestructure.net> <87hb8eebdi.fsf@servo.factory.finestructure.net> <87pqmyn224.fsf@servo.factory.finestructure.net> <87zklyjshd.fsf@yoom.home.cworth.org> <87sjrng5k3.fsf@servo.factory.finestructure.net> <87oc2bjgrs.fsf@yoom.home.cworth.org> <8762oigc0y.fsf@servo.factory.finestructure.net> <87boya98sf.fsf@gogo.home> <87vcwg2p2m.fsf@servo.factory.finestructure.net> <87wrcijn1w.fsf@zancas.localnet> <87ipo2td84.fsf@zancas.localnet> <87zkhduax2.fsf@convex-new.cs.unb.ca> User-Agent: Notmuch/unknown (http://notmuchmail.org) Emacs/23.2.1 (x86_64-apple-darwin) Date: Thu, 06 Oct 2011 16:40:00 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Thu, 06 Oct 2011 20:40:02 -0000 On Thu, 06 Oct 2011 17:23:21 -0300, David Bremner wrote: > What doesn't work is searches for the whole namespace "notmuch search > tag:bremner.*" will return nothing, even though "notmuch search > tag:bremner.to-fix" does. A simple shell way to do this would be notmuch search-tags | grep "^bremner\." | xargs -I {} notmuch search tag:{} That's pretty quick over a fair amount of messages. It would be quicker, I imagine, if it did the grepping inside of a program, but this is still way down there in the subsecond range. NB. I don't have that many tags, so maybe the grepping step would bog down a bit if I had more. But I doubt someone would have that much more than a few hundred.