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 AB91C431FBC for ; Wed, 10 Feb 2010 05:19:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.497 X-Spam-Level: X-Spam-Status: No, score=-2.497 tagged_above=-999 required=5 tests=[AWL=1.502, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4] 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 pY6-bcvInXrW for ; Wed, 10 Feb 2010 05:19:33 -0800 (PST) Received: from ipex1.johnshopkins.edu (ipex1.johnshopkins.edu [162.129.8.141]) by olra.theworths.org (Postfix) with ESMTP id E3416431FAE for ; Wed, 10 Feb 2010 05:19:32 -0800 (PST) X-IronPort-AV: E=Sophos;i="4.49,443,1262581200"; d="scan'208";a="295269992" Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky) ([69.255.36.229]) by ipex1.johnshopkins.edu with ESMTP/TLS/AES256-SHA; 10 Feb 2010 08:19:32 -0500 Received: from jkr by lucky with local (Exim 4.69) (envelope-from ) id 1NfCTR-0005mg-M4; Wed, 10 Feb 2010 08:19:21 -0500 From: Jesse Rosenthal To: David Edmondson , notmuch In-Reply-To: <87sk99xsd6.fsf@aw.hh.sledj.net> References: <87sk99xsd6.fsf@aw.hh.sledj.net> Date: Wed, 10 Feb 2010 08:19:21 -0500 Message-ID: <871vgti5ye.fsf@jhu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] hello, 'automated' tagging, synchronisation 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: Wed, 10 Feb 2010 13:19:33 -0000 Hi David, On Wed, 10 Feb 2010 11:06:13 +0000, David Edmondson wrote: > 2. ... So far my (unimplemented) solution for this > is to dump/restore the tags and store the dump under version > control. Moving from one computer to another (which I don't do very > often) would involve: > a$ notmuch dump >tags > a$ git commit tags > a$ git push > b$ git pull > b$ notmuch restore tags > With appropriate amounts of conflict resolution should I update the > tags on both a and b. This seems to be the going solution. However, if you have a stable connection and password-free ssh access to your home computer (as I do, from my work computer) I've had good luck just using the emacs client remotely, without even having notmuch installed on the second machine, by pointing the emacs variable `notmuch-command' to a shell script which, essentially, runs the following: ssh user@host /usr/local/bin/notmuch $@ The script is a bit more complicated, and it requires a very tiny patch to notmuch.el (no effect on local usage, I posted it on the list somewhere). But if you have a fast, stable connection, and you make use of an open ssh connection, it's almost as fast as local use, and doesn't require dumping back and forth. Problem: It can't at the moment handle attachments and, I imagine, the new html-inlining, which both use emacs code that refers to (insert-file-contents). One alternative would be to replace the (insert-file-contents) calls with TRAMP calls: (insert-file-contents (concat "/ssh:" host ":" file)) I'm also working on a trivial, but abstractable, solution that adds something like "notmuch show --raw-file," which could replace all of those emacs calls with notmuch calls, and which can therefore use the hacked-up client-server model. In other words, the latter solution would work in both the local and remote case, without having to alter the emacs client. This solution is not perfect, and it might not fit your needs, but I wanted to mention it, in addition to the dumping-restoring, as something that has been working well for me for a while now, when I have to use a second computer. Best, Jesse