summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/scripts/syncmail6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/scripts/syncmail b/.local/bin/scripts/syncmail
new file mode 100755
index 0000000..1402568
--- /dev/null
+++ b/.local/bin/scripts/syncmail
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+notify-send -a "syncmail" "Syncing started"
+mbsync -a -c "$XDG_CONFIG_HOME/isync/mbsyncrc"
+mailcnt=$(ls ~/mail/gmail/Inbox/new/ | wc -l)
+notify-send -a "syncmail" "Syncing complete" "Got $mailcnt new e-mails"