From 84fb1be64cf47f7867d1163ec396af84cf8471b8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 18 Oct 2023 19:58:45 +0100 Subject: (Scripts|SystemD)+mail fetch script and a SystemDservice/timer for it Syncs every 3 hours. Produces a notify-send message on fetching. --- Scripts/.local/scripts/mail_fetch | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 Scripts/.local/scripts/mail_fetch (limited to 'Scripts/.local') 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" -- cgit v1.2.3-13-gbd6f