Update mu4e sync service and timer

This commit is contained in:
Alexander Rosenberg 2023-09-24 18:19:56 -07:00
parent 8b171ea6ff
commit 8baf8d982d
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Sync mail with mu4e
[Service]
Type=oneshot
ExecStart=emacsclient --eval '(my/mu4e-update-mail-and-index-silent)'
RuntimeMaxSec=3m
Restart=on-failure
[Install]
WantedBy=default.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=Sync mail every minute with mu4e
[Timer]
OnCalendar=*-*-* *:*:00
FixedRandomDelay=true
AccuracySec=5s
RandomizedDelaySec=15s
Persistent=yes
[Install]
WantedBy=default.target