]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage.mdwn
Changed remote-usage script to use bash printf to quote special chars.
[notmuch-wiki] / remoteusage.mdwn
index 2b3d588d0e95921e2a8df672236d1d8dc91e0f0e..1ecd3aa4aed638b589561f19e021ec4a59b773c8 100644 (file)
@@ -29,7 +29,7 @@ You will need to have the following items in place:
 2.  a working notmuch emacs interface on another computer (let's call
 that computer "client")
 3.   password-free login (public key authentication) from client to
-server. [Here](http://sial.org/howto/openssh/publickey-auth/) is a
+server. [Here](http://www.debian-administration.org/articles/152) is a
 good page on how to set it up.
 4.   a reasonably fast connection. (This isn't really *neccessary*, but
 if your connection is too slow, this won't be very pleasant to use,
@@ -81,7 +81,7 @@ be necessary in the furture.
         shift
         # we need to a little sanitizing of msg ids so the shell
         # doesn't mangle them
-        ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'`
+        printf -v ARGS "%q " "$@"      
         $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
     }
     
@@ -89,7 +89,10 @@ be necessary in the furture.
     {
         notmuch_run search $@ |
         while read line; do
-           sleep 0.02
+           sleep 0.02   # Workaround a bug (missing lines) in the emacs interface
+                         # NOTE: This workaround is no longer necessary as of 
+                         # git rev eead2382. You can just run 
+                         # `notmuch_run search $@'                      
             echo "${line}"
         done
     }