From: martin f. krafft Date: Tue, 26 Mar 2019 12:02:32 +0000 (+0100) Subject: use neomutt for notmuch integration if available X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/5d8f7cd1564742c9756962d7429cf6e63040d49f use neomutt for notmuch integration if available --- 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)