From 0f94d0b8844baef4aa393cd51ad3f93e3b86b641 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 11 Nov 2016 15:42:09 +0100 Subject: [PATCH] Add timer to check my mail periodically --- systemd/.config/systemd/user/mbsync.service | 9 +++++++++ systemd/.config/systemd/user/mbsync.timer | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 systemd/.config/systemd/user/mbsync.service create mode 100644 systemd/.config/systemd/user/mbsync.timer 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