(Scripts|SystemD)+mail fetch script and a SystemDservice/timer for it

Syncs every 3 hours.  Produces a notify-send message on fetching.
This commit is contained in:
2023-10-18 19:58:45 +01:00
parent 434014a47d
commit 84fb1be64c
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
Description=Syncing mail using mbsyncrc
[Service]
Type=simple
ExecStart=%h/.local/scripts/mail_fetch

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run mail sync every 3 hours
[Timer]
OnBootSec=1min
OnUnitActiveSec=10800
Unit=mail.service
[Install]
WantedBy=timers.target