diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-10-02 17:44:55 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-10-02 17:46:06 +0200 |
| commit | a95618a2da63a8aca13fbd780d9ae8a386801e75 (patch) | |
| tree | 8652b4343af971ecb51c66f7d1a7829b4b15bedb /config/notmuch/hooks/post-new | |
| parent | 8ce1060681ec0f36dec6ba06396ec13d91610aa9 (diff) | |
| download | dotfiles-a95618a2da63a8aca13fbd780d9ae8a386801e75.tar.gz dotfiles-a95618a2da63a8aca13fbd780d9ae8a386801e75.zip | |
notmuch: move config to $XDG_CONFIG_HOME/notmuch
Add a notification for new mails and tag them.
Diffstat (limited to 'config/notmuch/hooks/post-new')
| -rwxr-xr-x | config/notmuch/hooks/post-new | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
