]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

use neomutt for notmuch integration if available
authormartin f. krafft <madduck@madduck.net>
Tue, 26 Mar 2019 12:02:32 +0000 (13:02 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 26 Mar 2019 12:03:05 +0000 (13:03 +0100)
.bin/task_call

index efc91495c1fe0c06b97fb9e959e010738786a0b2..71c4f766d62d8a3b7fd9cedc0ce9ab1121513895 100755 (executable)
@@ -19,7 +19,13 @@ case "$DATATYPE" in
     ;;
 
   (msgid)
-    mutt -f =store -e "push '<limit>~(=i\"$DATAPAYL\")<enter><search>=i\"$DATAPAYL\"<enter>'"
+    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 '<limit>~(=i\"$DATAPAYL\")<enter><search>=i\"$DATAPAYL\"<enter>'"
+
+    fi
     ;;
 
   (url)