From c5446fd696c30537ef00b16577ced4df288852db Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 17 May 2021 19:04:25 +0400 Subject: Added syncmail script --- .local/bin/scripts/syncmail | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/scripts/syncmail (limited to '.local') 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" -- cgit v1.2.3