diff options
author | Tom Willemse | 2016-11-11 15:42:09 +0100 |
---|---|---|
committer | Tom Willemse | 2016-11-11 15:42:09 +0100 |
commit | 0f94d0b8844baef4aa393cd51ad3f93e3b86b641 (patch) | |
tree | d87c137ef5a4547b59109819fd99646b486ed89b /systemd | |
parent | 067430319865c7cee1eec588d0c6317aee6d2276 (diff) | |
download | new-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.service | 9 | ||||
-rw-r--r-- | systemd/.config/systemd/user/mbsync.timer | 9 |
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 |