From 5d8f7cd1564742c9756962d7429cf6e63040d49f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 26 Mar 2019 13:02:32 +0100 Subject: [PATCH] use neomutt for notmuch integration if available --- .bin/task_call | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.2