aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mbsync/.local/bin/maildir-notify
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-05-15 20:03:30 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-05-15 20:16:37 -0500
commit5bf571df14cd2ed7cf6ca6ecadc26da53d61af06 (patch)
tree47942cf31b8fb04a35eb7cb6406117f94a5f2b77 /mbsync/.local/bin/maildir-notify
parent69e420c803099db126fffd3ca4bac5e396da4e1d (diff)
feat(mail): move all mail stuff inside notmuch hooks
Diffstat (limited to 'mbsync/.local/bin/maildir-notify')
-rwxr-xr-xmbsync/.local/bin/maildir-notify15
1 files changed, 0 insertions, 15 deletions
diff --git a/mbsync/.local/bin/maildir-notify b/mbsync/.local/bin/maildir-notify
deleted file mode 100755
index 4250bfe..0000000
--- a/mbsync/.local/bin/maildir-notify
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-for maildir; do
- printf 'monitoring: %s\n' "$maildir"
- set -- "$@" "${maildir}/new"
- shift
-done
-
-inotifywait --monitor --event create --event moved_to "$@" |
- while read -r dir _action file; do
- grep '^\(Subject\|From\|To\): .*$' <"${dir}${file}" |
- sed -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' |
- notify-send -a maildir-notify -c email.arrived -i mail-unread \
- 'You have new mail' "$(cat -)"
- done