More mail stuff
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Sync mail with mbsync and notmuch
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-mbsync -a ; notmuch new
|
||||
RuntimeMaxSec=3m
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
11
systemd/sync-mail@.service
Normal file
11
systemd/sync-mail@.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Sync mail with mbsync and send notifications
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-mbsync -a ; %h/scripts/mail/notify-mail.hy %h/.mail/%i
|
||||
RuntimeMaxSec=3m
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Sync mail every minute with mbsync and notmuch
|
||||
Description=Sync mail every minute with mbsync and send notifications
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:*:00
|
Reference in New Issue
Block a user