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 37E7E6DE0159 for ; Thu, 27 Oct 2016 23:42:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.111 X-Spam-Level: X-Spam-Status: No, score=-0.111 tagged_above=-999 required=5 tests=[AWL=0.800, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.211] 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 lhO_z9mW6Xik for ; Thu, 27 Oct 2016 23:42:57 -0700 (PDT) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by arlo.cworth.org (Postfix) with ESMTPS id 601FB6DE012F for ; Thu, 27 Oct 2016 23:42:57 -0700 (PDT) Received: by mail-qk0-f172.google.com with SMTP id v138so20603519qka.0 for ; Thu, 27 Oct 2016 23:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+WPXs9XuniBLW1dBCiIKkWRiKgfrwPGRAY24iI5bM3E=; b=EG5/H/7UncGy0REW9DdRB+J1SlaBBmOC2WTNCreC4fNVP5IdJ2isapyxiaIQwd0fkD JFp7fAowFUz7dk6zwgGMa5CWdff5OmTElb66n2JmX2dyBybQHUBV73+uAGEQ17idr+hu 1RXQ83f544aGfljqs4+i0jBSS6aVMjGhaCSyq26uKBJeQ6zv+KqJ+ygHv177jtMq96JU KuJ4JwSYlFDab99Mh3hD9kFgj0rZuV0gIWjVYygSDYUG8O5fRIfiwdNrLipdcxQYd01W yE4yTY8vgTkRn8XuC8yKAEDE4lUZyIGnxH7uVBm0RtgepJFoN77dY5nSKpwr/mTgstMG 4JjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+WPXs9XuniBLW1dBCiIKkWRiKgfrwPGRAY24iI5bM3E=; b=eCTzLPP11o4WQr8t8Tt0siHuButHhxLvxF8fUtpQexIBSNCbYPqGAIVRCQHQOgRwkx LCP+vnBbzL7Taf11TQf7sYdy9HBoL3pJal/YrtPfN2zxzuoKvxXkA4ZWUAON0xPc1OzQ 9bbScmXtGnvt4av+qy586YdwNIwH2RssCQJS3dp67fDRNFh40yQ7mj7Kbm2QWyW1GifD zrEKQYwxqSOS43tyuIMEDs2aIv/rnFqY8QtyQrsJM5ifcznUiKi9DC79sj8D6t6De60o 0eCCqGui/xRMWxCt4DpMPiOqWHN8FJowe+uJx9aZJm7q7p9VGLvIUzgVDAtoFlStu261 9QvA== X-Gm-Message-State: ABUngvcVhTmCQYyArO0/3FmWD/ONN8chgI/HkJWEn5ilkwWw/Rs9+BYDtM8VkPF/EB/hYdSt+QDNMKtU2NQocA== X-Received: by 10.55.115.7 with SMTP id o7mr10696562qkc.296.1477636975933; Thu, 27 Oct 2016 23:42:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.137 with HTTP; Thu, 27 Oct 2016 23:42:55 -0700 (PDT) In-Reply-To: <87lgx9ln56.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> References: <87lgx9ln56.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> From: Jani Nikula Date: Fri, 28 Oct 2016 09:42:55 +0300 Message-ID: Subject: Re: rfc for notmuch remote access script To: Tomi Ollila Cc: Notmuch Mail Content-Type: text/plain; charset=UTF-8 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 06:42:58 -0000 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. BR, Jani.