+ notmuch_run search $@ |
+ while read line; do
+ 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
+ }
+
+
+ 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}"
+ else
+ notmuch_run show $@
+ fi