diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-11-04 11:05:27 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-11-04 11:05:27 -0400 |
commit | 3069aaf12f2f89418ee1bdfa594dff1b6d528de1 (patch) | |
tree | ed25b6c409e4e45a9b8a713567762f43b82a2356 /email/.config/systemd | |
parent | b4ba06d45716498a29e3040670ca038fa8b8761d (diff) |
add email timer
Diffstat (limited to 'email/.config/systemd')
-rw-r--r-- | email/.config/systemd/user/mujmap.service | 7 | ||||
-rw-r--r-- | email/.config/systemd/user/mujmap.timer | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/email/.config/systemd/user/mujmap.service b/email/.config/systemd/user/mujmap.service new file mode 100644 index 0000000..3a84902 --- /dev/null +++ b/email/.config/systemd/user/mujmap.service @@ -0,0 +1,7 @@ +[Service] +Type=oneshot +ExecStart=/run/current-system/sw/bin/mujmap -C /home/orbekk/Maildir/fastmail sync + +[Unit] +Description=sync email +Wants=mujmap.timer diff --git a/email/.config/systemd/user/mujmap.timer b/email/.config/systemd/user/mujmap.timer new file mode 100644 index 0000000..85ad873 --- /dev/null +++ b/email/.config/systemd/user/mujmap.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run mujmap rgularly + +[Timer] +OnBootSec=1min +OnUnitActiveSec=15min + +[Install] +WantedBy=timers.target |