diff options
| author | Andrew <saintruler@gmail.com> | 2021-05-17 19:04:25 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2021-05-17 19:04:25 +0400 |
| commit | c5446fd696c30537ef00b16577ced4df288852db (patch) | |
| tree | 60de0947232ab2e5e0e6e35ee75ec74cd95e6810 /.local/bin | |
| parent | 7044d9611cc44ebb61838d7eb06f7833ba183977 (diff) | |
Added syncmail script
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/scripts/syncmail | 6 |
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" |