From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 09D266DE0159 for ; Fri, 28 Oct 2016 03:35:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyZEKDb8tPDP for ; Fri, 28 Oct 2016 03:35:53 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id AE2046DE012F for ; Fri, 28 Oct 2016 03:35:53 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1c04VW-0004uY-Ha; Fri, 28 Oct 2016 06:35:30 -0400 Received: (nullmailer pid 25091 invoked by uid 1000); Fri, 28 Oct 2016 10:35:46 -0000 From: David Bremner To: Jani Nikula , Tomi Ollila Cc: Notmuch Mail Subject: Re: rfc for notmuch remote access script In-Reply-To: References: <87lgx9ln56.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> Date: Fri, 28 Oct 2016 07:35:46 -0300 Message-ID: <874m3wvjzx.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Fri, 28 Oct 2016 10:35:55 -0000 Jani Nikula writes: > On Thu, Oct 27, 2016 at 8:25 PM, Tomi Ollila wrote: >> j4ni on irc expressed interest of having an installation option for >> notmuch-emacs and a notmuch remote access script as 'notmuch' >> >> This got me thinking what kind of script would fulfill all the needs >> that I know of. > > This here fulfills all of my needs: > > #!/bin/bash > printf -v ARGS "%q " "$@" > exec ssh notmuch notmuch ${ARGS} > > Keep it simple, I say. The user can (and must) configure all the ssh > stuff in ~/.ssh/config under "Host notmuch". If there is something > non-trivial the user must do, taking a trivial script and editing it > is usually *much* easier than trying to understand a complicated > script and making that work using environment variables etc. that need > to be set somewhere. I'm not necessarily disagreeing, but then I don't really understand your desire to have wish (I thought) to have notmuch install this script? Do you typically have notmuch install into your home directory? d