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 C0289431FBC for ; Mon, 22 Feb 2010 13:20:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -3.647 X-Spam-Level: X-Spam-Status: No, score=-3.647 tagged_above=-999 required=5 tests=[AWL=0.352, 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 5qFjn0uX8ozw for ; Mon, 22 Feb 2010 13:20:20 -0800 (PST) Received: from ipex1.johnshopkins.edu (ipex1.johnshopkins.edu [162.129.8.141]) by olra.theworths.org (Postfix) with ESMTP id 1E71A431FAE for ; Mon, 22 Feb 2010 13:20:20 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAM6DgkuA3DZF/2dsb2JhbACbAXOvfQIBAoRfiFWCZwEEgX8EgxU X-IronPort-AV: E=Sophos;i="4.49,520,1262581200"; d="scan'208";a="299630619" Received: from watt.gilman.jhu.edu ([128.220.54.69]) by ipex1.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA; 22 Feb 2010 16:20:18 -0500 Received: by watt.gilman.jhu.edu (Postfix, from userid 502) id C2BF3403FE0; Mon, 22 Feb 2010 16:20:18 -0500 (EST) From: Jesse Rosenthal To: notmuch@notmuchmail.org In-Reply-To: References: Date: Mon, 22 Feb 2010 16:20:18 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] notmuch.el: quote args in notmuch-show to facilitate remote use 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, 22 Feb 2010 21:20:20 -0000 The above patch and script don't deal with attachments or inline html, both of which require (for now) that the mail file be present locally. That may not be necessary with planned changed to notmuch in the future. For the time being, though, you can get attachments and html to work with over TRAMP, by adding the following to your .emacs file, which I'm sharing based on the encouragement of some folks on IRC: (setq notmuch-command "/script/in/the/above/message") (setq notmuch-remote-host "you@your.remote.host") ;; tell notmuch-show-get-filename to use TRAMP to open the file (defadvice notmuch-show-get-filename (around notmuch-show-get-remote-filename activate) (setq ad-return-value (concat "/ssh:" notmuch-remote-host ":" ad-do-it))) There's an annoying bit of redundancy in the fact that you have to define your remote server both in the elisp and in the shell-script. You could possibly extract it from the script if you wanted to, but that seems like it might be prone to error. Like the script, this requires password-less login to your ssh server. You can also speed this up by using an already open connection, using the ControlMaster feature in openssh. All best, Jesse