diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-03-29 19:32:57 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-03-29 19:32:57 -0500 |
commit | fdd531b4319aba6a800848dd15c0c9734a42f6a2 (patch) | |
tree | 98287bc9bf9a39c4b4da2428f7a8d41c09d5587e /mbsync/.config | |
parent | e9fd0daa3698fe28c272893cb982ffc4e58cfeba (diff) |
feat(mbsync): add notify daemon service using inotifywatch
Diffstat (limited to 'mbsync/.config')
-rw-r--r-- | mbsync/.config/environment.d/20-mail.conf | 1 | ||||
-rw-r--r-- | mbsync/.config/systemd/user/maildir-notify.service | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mbsync/.config/environment.d/20-mail.conf b/mbsync/.config/environment.d/20-mail.conf new file mode 100644 index 0000000..e3e2599 --- /dev/null +++ b/mbsync/.config/environment.d/20-mail.conf @@ -0,0 +1 @@ +MAIL=$XDG_DATA_HOME/mail/gmail/INBOX diff --git a/mbsync/.config/systemd/user/maildir-notify.service b/mbsync/.config/systemd/user/maildir-notify.service new file mode 100644 index 0000000..59dc969 --- /dev/null +++ b/mbsync/.config/systemd/user/maildir-notify.service @@ -0,0 +1,10 @@ +[Unit] +Description=Watches Maildir for new mail and sends notifications + +[Service] +Type=simple +ExecStart=%h/.local/bin/maildir-notify %h/.local/share/mail/gmail/INBOX %h/.local/share/mail/feeds/INBOX +RestartSec=10 + +[Install] +WantedBy=default.target |