Add timer to check my mail periodically

This commit is contained in:
Tom Willemse 2016-11-11 15:42:09 +01:00
parent 0674303198
commit 0f94d0b884
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=synchronize IMAP4 and Maildir mailboxes
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -aqV
[Install]
WantedBy=default.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run mbsync every minute
[Timer]
OnBootSec=1s
OnUnitActiveSec=1min
[Install]
WantedBy=timers.target