only sync active mbsync accounts

This commit is contained in:
Luke Smith 2019-06-01 17:59:47 -04:00
parent e408f4b290
commit dd73533565
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -38,7 +38,7 @@ syncandnotify() {
# Sync accounts passed as argument or all.
if [ "$#" -eq "0" ]; then
accounts="$(ls "$HOME/.local/share/mail")"
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
else
accounts=$*
fi