summaryrefslogtreecommitdiff
path: root/bin/mailsync
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-06-01 17:59:47 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-06-01 17:59:47 -0400
commitdd73533565e7fd2cdc16ccfaf63c6605940ac6a7 (patch)
tree92d92e0561a1a85ffb017802531ecf95c624d954 /bin/mailsync
parente408f4b290003a2a839d7b1c2917dd6d7345595f (diff)
only sync active mbsync accounts
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-xbin/mailsync2
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