summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2021-05-17 19:04:25 +0400
committerAndrew <saintruler@gmail.com>2021-05-17 19:04:25 +0400
commitc5446fd696c30537ef00b16577ced4df288852db (patch)
tree60de0947232ab2e5e0e6e35ee75ec74cd95e6810 /.local
parent7044d9611cc44ebb61838d7eb06f7833ba183977 (diff)
Added syncmail script
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"