diff options
author | xengineering <me@xengineering.eu> | 2022-06-04 21:15:25 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-06-04 21:15:25 +0200 |
commit | ac75a5e44100274b39d7ced5b7e7ecae6a99bc24 (patch) | |
tree | 8bb2c40410c6833440561a9d3df4b8524c14c741 | |
parent | 596858bb6d3b8f15f9f73abeb0206a696caa4562 (diff) | |
download | dotfiles-ac75a5e44100274b39d7ced5b7e7ecae6a99bc24.tar dotfiles-ac75a5e44100274b39d7ced5b7e7ecae6a99bc24.tar.zst dotfiles-ac75a5e44100274b39d7ced5b7e7ecae6a99bc24.zip |
Add systemd user units to synchronize mail
-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 |