notmuch.el: quote args in notmuch-show to facilitate remote use
authorJesse Rosenthal <jrosenthal@jhu.edu>
Sun, 24 Jan 2010 20:22:33 +0000 (15:22 -0500)
committerCarl Worth <cworth@cworth.org>
Tue, 13 Apr 2010 16:14:03 +0000 (09:14 -0700)
commit9193455fa1476ea3957475e77379b75efa6dd90b
tree42143d55805fa5a892cd7b5e3f4e99a23121c13d
parent8fede713376ca5f18eece52aa491b5ec93f4af90
notmuch.el: quote args in notmuch-show to facilitate remote use

Put single-quotes around the argument of the `show --entire-thread' command
in notmuch-show. This change should have no effect on normal usage.
However, it allows us to use the notmuch.el client with a remote notmuch
binary and database over ssh (by, e.g., setting `notmuch-command' to a
simple shell script). Without the quotes, ssh will not send the command
properly.

One very simple example script is as follows. (Note that it requires
keypair login to the ssh server.)

        #!/bin/sh

        SSH_BIN="/path/to/local/ssh"
        NOTMUCH_HOST="my.remote.server"
        NOTMUCH_REMOTE_PATH="/path/to/remote/notmuch"

        $SSH_BIN $NOTMUCH_HOST $NOTMUCH_REMOTE_PATH $@
emacs/notmuch-show.el