X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=remoteusage.mdwn;h=edc63fb93c17b04881fe25c6af1b792a7d1c728e;hp=7a219920138534f6faeee098e81e79c7b5bf9d01;hb=7e1c518574caddf0ec9ec70eac33a361c75aecbd;hpb=d6b6189145c19e9ed965cc75536ed239120835c2 diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 7a21992..edc63fb 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -87,13 +87,10 @@ be necessary in the furture. 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 }