1
0
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:
Ryan Kes 2019-06-12 13:17:26 +02:00
parent ed7f38d68d
commit a1bca7a21a
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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