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