mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Run mbsync in parallel on groups instead of channels to prevent locks
This commit is contained in:
parent
ed7f38d68d
commit
a1bca7a21a
@ -33,7 +33,7 @@ syncandnotify() {
|
||||
|
||||
# Sync accounts passed as argument or all.
|
||||
if [ "$#" -eq "0" ]; then
|
||||
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
|
||||
accounts="$(awk '/^Group/ {print $2}' "$HOME/.mbsyncrc")"
|
||||
else
|
||||
accounts=$*
|
||||
fi
|
||||
|
@ -16,10 +16,13 @@ Path ~/.local/share/mail/ryankes/
|
||||
Inbox ~/.local/share/mail/ryankes/INBOX
|
||||
Flatten .
|
||||
|
||||
Channel ryankes
|
||||
Channel ryankes-all
|
||||
Master :ryankes-remote:
|
||||
Slave :ryankes-local:
|
||||
Patterns INBOX* Trash Drafts Sent Archive Spam
|
||||
|
||||
Group ryankes
|
||||
Channel ryankes-all
|
||||
# End profile
|
||||
|
||||
IMAPStore gmail-remote
|
||||
|
Loading…
Reference in New Issue
Block a user