X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=2128886eb226032ab733de93c33da43b37e49060;hb=a4276a0a7b792d8bff02aceab66fd777642fa4f9;hp=7a219920138534f6faeee098e81e79c7b5bf9d01;hpb=d6b6189145c19e9ed965cc75536ed239120835c2;p=notmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 7a21992..2128886 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -79,21 +79,21 @@ be necessary in the furture. [ -d "${CACHE}" ] || mkdir -p "${CACHE}" CMD=$1 shift - # we need to a little sanitizing of msg ids so the shell + # we need to a little sanitizing of msg ids so the shell # doesn't mangle them - ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'` + ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'` $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS} } notmuch_search () { - #COUNTER=1 notmuch_run search $@ | while read line; do - sleep 0.02 - #[ $((COUNTER % 3)) == "0" ] && sleep 0.03 - echo "${line}" - #COUNTER=$((COUNTER + 1)) + 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 } @@ -101,12 +101,12 @@ be necessary in the furture. notmuch_show () { if [ ${1} = "--format=raw" ]; then - hashed=`hash_name ${2}` - check_for_file_name ${hashed} || - notmuch_run show --format=raw ${2} > "${CACHE}/${hashed}" - cat "${CACHE}/${hashed}" + hashed=`hash_name ${2}` + check_for_file_name ${hashed} || + notmuch_run show --format=raw ${2} > "${CACHE}/${hashed}" + cat "${CACHE}/${hashed}" else - notmuch_run show $@ + notmuch_run show $@ fi }