diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-06-01 17:59:47 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-06-01 17:59:47 -0400 |
commit | dd73533565e7fd2cdc16ccfaf63c6605940ac6a7 (patch) | |
tree | 92d92e0561a1a85ffb017802531ecf95c624d954 | |
parent | e408f4b290003a2a839d7b1c2917dd6d7345595f (diff) |
only sync active mbsync accounts
-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 |