From a1bca7a21a3c4ccdb08c8ddd2079ba13196bad9c Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Wed, 12 Jun 2019 13:17:26 +0200 Subject: [PATCH] Run mbsync in parallel on groups instead of channels to prevent locks --- mutt/.local/bin/mailsync | 2 +- mutt/.mbsyncrc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mutt/.local/bin/mailsync b/mutt/.local/bin/mailsync index 835ed73..9498376 100755 --- a/mutt/.local/bin/mailsync +++ b/mutt/.local/bin/mailsync @@ -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 diff --git a/mutt/.mbsyncrc b/mutt/.mbsyncrc index 68ec698..3f254c7 100644 --- a/mutt/.mbsyncrc +++ b/mutt/.mbsyncrc @@ -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