aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mbsync/.config/systemd
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2023-09-28 17:59:47 -0500
committerToby Vincent <tobyv@tobyvin.dev>2023-09-28 17:59:47 -0500
commita764a9ee86d47f54825a086db1cc2def8196c593 (patch)
tree969d6b6f2be72ff0d642f8fb342935cc45b444e9 /mbsync/.config/systemd
parent3b16b85d5e8a1c55449ecbde6a42eac3e6a8af0a (diff)
fix(mbsync): split notify service by maildir
Diffstat (limited to 'mbsync/.config/systemd')
-rw-r--r--mbsync/.config/systemd/user/maildir-notify.service10
-rw-r--r--mbsync/.config/systemd/user/maildir-notify@.service10
2 files changed, 10 insertions, 10 deletions
diff --git a/mbsync/.config/systemd/user/maildir-notify.service b/mbsync/.config/systemd/user/maildir-notify.service
deleted file mode 100644
index 3c57b06..0000000
--- a/mbsync/.config/systemd/user/maildir-notify.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Watches Maildir for new mail and sends notifications
-
-[Service]
-Type=simple
-ExecStart=%h/.local/bin/maildir-notify
-RestartSec=10
-
-[Install]
-WantedBy=default.target
diff --git a/mbsync/.config/systemd/user/maildir-notify@.service b/mbsync/.config/systemd/user/maildir-notify@.service
new file mode 100644
index 0000000..6d2d3e0
--- /dev/null
+++ b/mbsync/.config/systemd/user/maildir-notify@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Notify on new mail in MailDir %i
+
+[Service]
+Type=simple
+ExecStart=%h/.local/bin/maildir-notify ${XDG_DATA_HOME}/mail/%i/INBOX
+RestartSec=10
+
+[Install]
+WantedBy=default.target