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 927746DE0173 for ; Sun, 30 Oct 2016 02:37:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.051 X-Spam-Level: X-Spam-Status: No, score=0.051 tagged_above=-999 required=5 tests=[AWL=0.771, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-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 TSny3KDZx22Y for ; Sun, 30 Oct 2016 02:37:51 -0700 (PDT) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by arlo.cworth.org (Postfix) with ESMTPS id 24CEA6DE00AC for ; Sun, 30 Oct 2016 02:37:50 -0700 (PDT) Received: by mail-lf0-f50.google.com with SMTP id b81so84396256lfe.1 for ; Sun, 30 Oct 2016 02:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=0tdgPAHeYH8ZaxMO87lJKrcaLYno3UxcGaf7h4XNi6A=; b=JKTHvBQopjOz24AvrPQ1p4ATwSYQcwb83dadninEfKgxd/R4fp622eRfKgNJX+6jaF 9XVLsW/NgjPE8cHW8Af4E6gkgkv6R3srkdcsdIzcnTMkTiFIRrvyAT49RAvZj6eUYsfq KtLmtFLNivH8gwQSC4ICereJAWuq3VHWGeCaXa8Tb+spd7DsJ9tYV3F9LfhlyIIm5mVI 55OG5hYKrUf/06ayEWv4Cv9YsVmDTfGHy9W7xE2850+G3BqjJpJ43E9OxlNqQw5G8z4S ZdYpIDlx8cC58IBTDp+KPHB9ai+d2TMGdOma25fQX3y+PoRLg+0sxHgmPPZoi+OetU3O d+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=0tdgPAHeYH8ZaxMO87lJKrcaLYno3UxcGaf7h4XNi6A=; b=HBln3bPm1DqP7UQW2djP7YD15o7oB22hlaOf/2uvjxQiTfz8p4Fsxku+hdSD1vlfmf w2HcAGdIT+WYCY3GkqLAU4e04Jh/D0dyVqkz10kBxUqdYNVIbJGd6NjWdQME5cqwWEg+ 97EyavF1KKDASM8MOVhze3RfRDrv8tVcmaQswMsDMR9yvqFjl1JR/EG1NWKA4ups/cqb 9dDdKEX6o5xnsSXQ4Iajjm4WKRf9IvZd7BV1SRqLurcvZAnHP2deFMqBRL5dxkBrU0uo QmNvFTJxZQTwpc51HIn1nNZ6Liq5y2E7DcmjY9mQ2HOnzdua68PyVmArH6lhmo1yt2A5 1neQ== X-Gm-Message-State: ABUngvcBPgNCoo7gZSKfG3yFOQgQ/MLGaByoQfR4inSdAh1PNT103h+/9v6ppP6Ucps+FA== X-Received: by 10.25.213.203 with SMTP id m194mr13301790lfg.61.1477820267462; Sun, 30 Oct 2016 02:37:47 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c368-70.dhcp.inet.fi. [88.195.104.70]) by smtp.gmail.com with ESMTPSA id h7sm3541598ljh.21.2016.10.30.02.37.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2016 02:37:46 -0700 (PDT) From: Jani Nikula To: David Bremner , Tomi Ollila Cc: Notmuch Mail Subject: Re: rfc for notmuch remote access script In-Reply-To: <874m3wvjzx.fsf@tethera.net> References: <87lgx9ln56.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> <874m3wvjzx.fsf@tethera.net> Date: Sun, 30 Oct 2016 11:35:53 +0200 Message-ID: <8760oa41s6.fsf@nikula.org> 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: Sun, 30 Oct 2016 09:37:52 -0000 On Fri, 28 Oct 2016, David Bremner wrote: > 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? I'd like to be able to install a "notmuch-remote" setup: the notmuch remote script, possibly bash completion, and notmuch-emacs. Basically everything that's required on notmuch side for the complete working notmuch remote setup. And specifically excluding notmuch binaries. Of course, you'll still need to set up ssh to host "notmuch" and notmuch binaries on that host. Tomi's general approach seems to be to add a bunch of environment variables in the remote access script so you don't have to touch ~/.ssh/config. Instead, you need to make sure you have all of these environment variables correctly set up, both in shell and in your emacs session. And to do that, you'll need to either read the script or read a bunch of documentation (that someone will have to write). Personally, I prefer a simple script that assumes a certain type of ssh client configuration. We can typically reference documentation written by others how to do that, and just say "put that stuff under a Host notmuch section in ~/.ssh/config". So I'd like notmuch remote installation that tells the user to set up ssh, instead of telling the user to copy a script somewhere in $PATH, and hack that up along with making compatible changes in ssh config. > Do you typically have notmuch install into your home directory? No. Please explain the relevance of this question. BR, Jani.