Update mu4e sync service and timer
This commit is contained in:
parent
8b171ea6ff
commit
8baf8d982d
11
systemd/mu4e-sync-mail.service
Normal file
11
systemd/mu4e-sync-mail.service
Normal 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
|
12
systemd/mu4e-sync-mail.timer
Normal file
12
systemd/mu4e-sync-mail.timer
Normal 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
|
Loading…
Reference in New Issue
Block a user