aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/mail_fetch6
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"