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.
|
# Sync accounts passed as argument or all.
|
||||||
if [ "$#" -eq "0" ]; then
|
if [ "$#" -eq "0" ]; then
|
||||||
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
|
accounts="$(awk '/^Group/ {print $2}' "$HOME/.mbsyncrc")"
|
||||||
else
|
else
|
||||||
accounts=$*
|
accounts=$*
|
||||||
fi
|
fi
|
||||||
|
@ -16,10 +16,13 @@ Path ~/.local/share/mail/ryankes/
|
|||||||
Inbox ~/.local/share/mail/ryankes/INBOX
|
Inbox ~/.local/share/mail/ryankes/INBOX
|
||||||
Flatten .
|
Flatten .
|
||||||
|
|
||||||
Channel ryankes
|
Channel ryankes-all
|
||||||
Master :ryankes-remote:
|
Master :ryankes-remote:
|
||||||
Slave :ryankes-local:
|
Slave :ryankes-local:
|
||||||
Patterns INBOX* Trash Drafts Sent Archive Spam
|
Patterns INBOX* Trash Drafts Sent Archive Spam
|
||||||
|
|
||||||
|
Group ryankes
|
||||||
|
Channel ryankes-all
|
||||||
# End profile
|
# End profile
|
||||||
|
|
||||||
IMAPStore gmail-remote
|
IMAPStore gmail-remote
|
||||||
|
Loading…
Reference in New Issue
Block a user