Re: rfc for notmuch remote access script

2016-10-30 Thread Tomi Ollila
Thanks for the discussion so far. after sending this email I continue tomorrow with the others... Matt Armstrong writes: > Neat. Basics of it look correct to me. Personally, I'd abandon most of > these environment variables and edit the script directly, but that goes > against your stated go

Re: [PATCH v2] completion: complete mimetype: search prefix

2016-10-30 Thread Tomi Ollila
Jani Nikula writes: > On Tue, 25 Oct 2016, Tomi Ollila wrote: >> Jani Nikula writes: >> >>> Use /etc/mime.types if available, with a homebrew sed parser, and fall >>> back to a handful of common types otherwise. >> >> I'd suggest the following line: >> >> sed -n '/^[[:alpha:]]/ s/[[:space:

Re: rfc for notmuch remote access script

2016-10-30 Thread David Bremner
Mark Walters writes: > 1) have 2 separate config targets for notmuch-cli and notmuch-emacs so > you can install one without the other. We already have the install target install-emacs. We have a configure option --without-emacs. We could add "--without-lib" and "--without-cli" options to config

Re: rfc for notmuch remote access script

2016-10-30 Thread Jani Nikula
On Sun, Oct 30, 2016 at 2:39 PM, Mark Walters wrote: > The only possible downside I can see with this is if the address for the > notmuch-server varies. For example my router does NAT the address from > inside and outside my home network is different. I don't know if that is > a common setup, and

Re: rfc for notmuch remote access script

2016-10-30 Thread Mark Walters
On Sun, 30 Oct 2016, David Bremner wrote: > Jani Nikula writes: > >> >> 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 >> notmu

Re: rfc for notmuch remote access script

2016-10-30 Thread David Bremner
Jani Nikula writes: > > 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". > OK, I misunderstoo

Re: [PATCH v2] completion: complete mimetype: search prefix

2016-10-30 Thread Jani Nikula
On Tue, 25 Oct 2016, Tomi Ollila wrote: > Jani Nikula writes: > >> Use /etc/mime.types if available, with a homebrew sed parser, and fall >> back to a handful of common types otherwise. > > I'd suggest the following line: > > sed -n '/^[[:alpha:]]/ s/[[:space:]].*//p' /etc/mime.types > > I

Re: rfc for notmuch remote access script

2016-10-30 Thread Jani Nikula
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 kin