diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-18 19:58:45 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-18 19:58:45 +0100 |
commit | 84fb1be64cf47f7867d1163ec396af84cf8471b8 (patch) | |
tree | e3092ede300afffd6aa8d644ce7b1a44cb531d87 /Scripts/.local/scripts | |
parent | 434014a47d0a67796fd79a199daf44a1fb3146e1 (diff) | |
download | dotfiles-84fb1be64cf47f7867d1163ec396af84cf8471b8.tar.gz dotfiles-84fb1be64cf47f7867d1163ec396af84cf8471b8.tar.bz2 dotfiles-84fb1be64cf47f7867d1163ec396af84cf8471b8.zip |
(Scripts|SystemD)+mail fetch script and a SystemDservice/timer for it
Syncs every 3 hours. Produces a notify-send message on fetching.
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/mail_fetch | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mail_fetch b/Scripts/.local/scripts/mail_fetch new file mode 100755 index 0000000..6ee28fc --- /dev/null +++ b/Scripts/.local/scripts/mail_fetch @@ -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" |