only sync active mbsync accounts
This commit is contained in:
parent
e408f4b290
commit
dd73533565
@ -38,7 +38,7 @@ syncandnotify() {
|
|||||||
|
|
||||||
# Sync accounts passed as argument or all.
|
# Sync accounts passed as argument or all.
|
||||||
if [ "$#" -eq "0" ]; then
|
if [ "$#" -eq "0" ]; then
|
||||||
accounts="$(ls "$HOME/.local/share/mail")"
|
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
|
||||||
else
|
else
|
||||||
accounts=$*
|
accounts=$*
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user