From ac75a5e44100274b39d7ced5b7e7ecae6a99bc24 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 4 Jun 2022 21:15:25 +0200 Subject: Add systemd user units to synchronize mail --- .config/systemd/user/mail.service | 9 +++++++++ .config/systemd/user/mail.timer | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 .config/systemd/user/mail.service create mode 100644 .config/systemd/user/mail.timer 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 -- cgit v1.2.3-70-g09d2