aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-11-11 15:42:09 +0100
committerGravatar Tom Willemse2016-11-11 15:42:09 +0100
commit0f94d0b8844baef4aa393cd51ad3f93e3b86b641 (patch)
treed87c137ef5a4547b59109819fd99646b486ed89b /systemd
parent067430319865c7cee1eec588d0c6317aee6d2276 (diff)
downloadnew-dotfiles-0f94d0b8844baef4aa393cd51ad3f93e3b86b641.tar.gz
new-dotfiles-0f94d0b8844baef4aa393cd51ad3f93e3b86b641.zip
Add timer to check my mail periodically
Diffstat (limited to 'systemd')
-rw-r--r--systemd/.config/systemd/user/mbsync.service9
-rw-r--r--systemd/.config/systemd/user/mbsync.timer9
2 files changed, 18 insertions, 0 deletions
diff --git a/systemd/.config/systemd/user/mbsync.service b/systemd/.config/systemd/user/mbsync.service
new file mode 100644
index 0000000..b2177f4
--- /dev/null
+++ b/systemd/.config/systemd/user/mbsync.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=synchronize IMAP4 and Maildir mailboxes
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -aqV
+
+[Install]
+WantedBy=default.target
diff --git a/systemd/.config/systemd/user/mbsync.timer b/systemd/.config/systemd/user/mbsync.timer
new file mode 100644
index 0000000..202d27f
--- /dev/null
+++ b/systemd/.config/systemd/user/mbsync.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run mbsync every minute
+
+[Timer]
+OnBootSec=1s
+OnUnitActiveSec=1min
+
+[Install]
+WantedBy=timers.target