[ -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_run search $@ |
while read line; do
- sleep 0.02
- echo "${line}"
+ 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
}