(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 @@
#!/usr/bin/env sh
prev=$(notmuch count)
mbsync -a
new=$(notmuch count)
notify-send "mail_fetch: Fetched $(echo $new - $prev | bc -l) mail"