diff options
-rw-r--r-- | .config/systemd/user/mail.service | 9 | ||||
-rw-r--r-- | .config/systemd/user/mail.timer | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.config/systemd/user/mail.service b/.config/systemd/user/mail.service new file mode 100644 index 0000000..6f79009 --- /dev/null +++ b/.config/systemd/user/mail.service @@ -0,0 +1,9 @@ +[Unit] +Description=Synchronize my mail + +[Service] +Type=oneshot +ExecStart=/usr/bin/offlineimap + +[Install] +WantedBy=multi-user.target diff --git a/.config/systemd/user/mail.timer b/.config/systemd/user/mail.timer new file mode 100644 index 0000000..f921c12 --- /dev/null +++ b/.config/systemd/user/mail.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Synchronize my mail automatically + +[Timer] +OnUnitInactiveSec=30 + +[Install] +WantedBy=timers.target |