aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/mail_fetch
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 01:23:36 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 01:23:36 +0100
commit642e7c95c139da0c2f13830414148bbcf8a2c219 (patch)
treefdfe0fc90fec13cb837fa67cc1337677d303828c /Scripts/.local/scripts/mail_fetch
parentf5ea98f47409a7bcf8a57114ef992b2be1454afb (diff)
downloaddotfiles-642e7c95c139da0c2f13830414148bbcf8a2c219.tar.gz
dotfiles-642e7c95c139da0c2f13830414148bbcf8a2c219.tar.bz2
dotfiles-642e7c95c139da0c2f13830414148bbcf8a2c219.zip
(Scripts)~mail_fetch:refresh notmuch before counting
Diffstat (limited to 'Scripts/.local/scripts/mail_fetch')
-rwxr-xr-xScripts/.local/scripts/mail_fetch1
1 files changed, 1 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mail_fetch b/Scripts/.local/scripts/mail_fetch
index 6ee28fc..3a2d7f9 100755
--- a/Scripts/.local/scripts/mail_fetch
+++ b/Scripts/.local/scripts/mail_fetch
@@ -2,5 +2,6 @@
prev=$(notmuch count)
mbsync -a
+notmuch new
new=$(notmuch count)
notify-send "mail_fetch: Fetched $(echo $new - $prev | bc -l) mail"