X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=968978e154423f7c6cd30c63caf9f36b7c853bb0;hb=33f81ca52aaa6d15203bad2b68b4acd11584e2fe;hp=337a2fc8f1520fe68b39e74927fcf7aef66e4f12;hpb=31054bedc3cebcb7b2c44b87ca4b6e98296c6e2f;p=notmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 337a2fc..968978e 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -54,18 +54,18 @@ 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 () { if [ $1 = "search" ]; then - OUT=$($SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@) - echo "$OUT" | while read line; do - echo "$line"; - sleep 0.1; - done + $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ | while read line; do + sleep 0.1 + echo "${line}" + + done else - $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ + $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ fi } @@ -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