X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=2b3d588d0e95921e2a8df672236d1d8dc91e0f0e;hb=040d676d1a5cc972c1602dd731877ee9cdc131af;hp=7a219920138534f6faeee098e81e79c7b5bf9d01;hpb=d6b6189145c19e9ed965cc75536ed239120835c2;p=notmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 7a21992..2b3d588 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -79,21 +79,18 @@ 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 + echo "${line}" done } @@ -101,12 +98,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 }