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 44C1A429E28 for ; Mon, 6 Jun 2011 10:20:04 -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 xWR9z06krArp for ; Mon, 6 Jun 2011 10:20:02 -0700 (PDT) Received: from ipex4.johnshopkins.edu (ipex4.johnshopkins.edu [128.220.161.141]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 11433431FB6 for ; Mon, 6 Jun 2011 10:20:02 -0700 (PDT) X-IronPort-AV: E=Sophos;i="4.65,327,1304308800"; d="scan'208";a="75620948" Received: from dyn-209-2-216-143.dyn.columbia.edu (HELO gogo.home) ([209.2.216.143]) by ipex4.johnshopkins.edu with ESMTP/TLS/AES256-SHA; 06 Jun 2011 13:20:01 -0400 Received: from jkr by gogo.home with local (Exim 4.76) (envelope-from ) id 1QTdT6-000757-UW; Mon, 06 Jun 2011 13:20:00 -0400 From: Jesse Rosenthal To: Jameson Graef Rollins , Carl Worth , Notmuch Mail Subject: Re: tag sharing [was: Re: release-candidate/0.6 redux] In-Reply-To: <8762oigc0y.fsf@servo.factory.finestructure.net> 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> User-Agent: Notmuch/0.5-192-gecd6549 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Mon, 06 Jun 2011 13:20:00 -0400 Message-ID: <87boya98sf.fsf@gogo.home> 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: Mon, 06 Jun 2011 17:20:04 -0000 On Mon, 06 Jun 2011 09:28:13 -0700, Jameson Graef Rollins wrote: > I've been thinking about this more and it really seems we need a way to > just share tags. What if we had a way to export all the tags for a set > of messages as a notmuch dump file, that could just be piped into > notmuch to modify tags? This would be a great way for lots of people to > keep tags synced on a set of messages. After a conversation with David last year about bug-tracking, I worked up a rough python-based prototype of this. It worked in terms of namespaces, so Carl could associate the namespace "public" with a list of tags he publishes to a http-accessable location. And you could associate the namespace "cworth" with those same tags. He types `whatevercommand push public` and all tags "public.*" go to an config-associated URL. You type `whatevercommand pull cworth` and the tags come down from that URL as "cworth.*". So what he has as "public.to-push" comes down to your notmuch as "cworth.to-push". It's available here: http://commonmeasure.org/~jkr/git/nm-remote.git See these emails for more (but note that the repo url has changed to the above). id:"m1k4rkkchy.fsf@watt.gilman.jhu.edu" id:"m1hbmokbxj.fsf@watt.gilman.jhu.edu" There were some details and inherent ambiguities about conflict resolution, and the above emails explain how I dealt with them. Note also that it uses python's configparser, which will overwrite your config -- which means it'll get rid of your comments. So if you use any of the config-writing commands, make sure you back up your config first. Best, Jesse