From a95618a2da63a8aca13fbd780d9ae8a386801e75 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 2 Oct 2024 17:44:55 +0200 Subject: notmuch: move config to $XDG_CONFIG_HOME/notmuch Add a notification for new mails and tag them. --- config/notmuch/hooks/post-new | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 config/notmuch/hooks/post-new (limited to 'config/notmuch/hooks/post-new') diff --git a/config/notmuch/hooks/post-new b/config/notmuch/hooks/post-new new file mode 100755 index 0000000..05250e4 --- /dev/null +++ b/config/notmuch/hooks/post-new @@ -0,0 +1,3 @@ +#!/bin/sh +test $(notmuch search tag:new | wc -l) -gt 0 && notify-send notmuch "new mail" +notmuch tag -new tag:new -- cgit v1.2.3