diff options
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 8b98d42..b59c8e3 100755 --- 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 |