(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:
6
Scripts/.local/scripts/mail_fetch
Executable file
6
Scripts/.local/scripts/mail_fetch
Executable 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"
|
||||
Reference in New Issue
Block a user