X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/a24515630bb569ef857f54ea3a28768bccdad356..HEAD:/.bin/task_call diff --git a/.bin/task_call b/.bin/task_call index efc9149..71c4f76 100755 --- a/.bin/task_call +++ b/.bin/task_call @@ -19,7 +19,13 @@ case "$DATATYPE" in ;; (msgid) - mutt -f =store -e "push '~(=i\"$DATAPAYL\")=i\"$DATAPAYL\"'" + if command -v neomutt >/dev/null && command -v notmuch >/dev/null; then + exec neomutt -f "notmuch://$HOME/mail/?query=thread:{mid:$DATAPAYL}" + + else + exec mutt -f =store -e "push '~(=i\"$DATAPAYL\")=i\"$DATAPAYL\"'" + + fi ;; (url)