summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--email/.config/systemd/user/mujmap.service7
-rw-r--r--email/.config/systemd/user/mujmap.timer9
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