commit dd73533565e7fd2cdc16ccfaf63c6605940ac6a7
parent e408f4b290003a2a839d7b1c2917dd6d7345595f
Author: Luke Smith <luke@lukesmith.xyz>
Date: Sat, 1 Jun 2019 17:59:47 -0400
only sync active mbsync accounts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/mailsync b/bin/mailsync
@@ -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