Hello.
Thought I'd share a hack I've been using recently. I have my
notmuch database on another machine. I wanted to access it via my
local emacs session. I didn't want to ssh in to the machine or
sync the data to another machine. I realised all communication is
done via the notmuch binary, so I wrote a wrapper script which
runs notmuch via ssh:
#!/usr/bin/env bash args=() for var in "$@" do
args+=($(printf '%q' "$var"))
done exec ssh real.local -- notmuch "${args[@]}"
Note I have hardcoded the remote (real.local). I also needed to
escape arguments since the remote shell had a tendancy to
interpret them. This escaping isn't fullproof, but has been
working so far.
I put the above script on my PATH as "notmuch", and emacs
magically uses it. Alternatively you could set the notmuch-command
to point to the above shell script.
Cheers,
Keegan
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org