X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/b2bea6a2530dc8ae41eb5120565406fb7317e3b5..a24515630bb569ef857f54ea3a28768bccdad356:/.bin/task_call diff --git a/.bin/task_call b/.bin/task_call index 9f43a67..efc9149 100755 --- a/.bin/task_call +++ b/.bin/task_call @@ -15,28 +15,28 @@ DATAPAYL="${DATA#*:}" case "$DATATYPE" in ('') echo >&2 I: No link data available for this task. - task "$TSK" + exec task "$TSK" ;; (msgid) - mutt -f =store -e "push '~i $DATAPAYL'" + mutt -f =store -e "push '~(=i\"$DATAPAYL\")=i\"$DATAPAYL\"'" ;; (url) - sensible-browser "$DATAPAYL" + exec sensible-browser "$DATAPAYL" ;; (file) if eval test -f "$DATAPAYL"; then case "$(file --mime-type "$DATAPAYL")" in - (*": text/"*) eval sensible-editor "$DATAPAYL";; - (*) eval run-mailcap --action=edit "$DATAPAYL";; + (*": text/"*) eval exec sensible-editor "$DATAPAYL";; + (*) eval exec run-mailcap --action=view "$DATAPAYL";; esac fi ;; (*) - eval run-mailcap --action=edit "$DATAPAYL" + eval exec run-mailcap --action=view "$DATAPAYL" ;; esac