]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage.mdwn
Quote "CACHE" variable in script.
[notmuch-wiki] / remoteusage.mdwn
index 337a2fc8f1520fe68b39e74927fcf7aef66e4f12..6492ddedc01efcbd6c9191b39e05241995ed873f 100644 (file)
@@ -54,7 +54,7 @@ be necessary in the furture.
     USER="user_name"
     SSH_HOST="server_name"
     NOTMUCH_REMOTE_BIN="/path/to/notmuch/on/server"
-    CACHE=${HOME}/.notmuch-cache.d
+    CACHE="${HOME}/.notmuch-cache.d"
 
     notmuch_run ()
     {
@@ -120,10 +120,11 @@ message text.
 
     (defun notmuch-show-get-filename ()
       (let* ((orig-filename (notmuch-show-get-prop :filename))
-            (retvalue (shell-command-to-string (concat 
-                                            notmuch-command
-                                            " --get "
-                                            orig-filename))))
+             (retvalue (progn 
+                         (message "Downloading... ")
+                         (shell-command-to-string (concat notmuch-command 
+                                                          " --get "
+                                                          orig-filename)))))
         (replace-regexp-in-string "\n" "" retvalue)))
 
 This will will use the "--get" option of the above