summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--offlineimap/.offlineimaprc6
1 files changed, 3 insertions, 3 deletions
diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc
index c1c4e37b..db9bffb2 100644
--- a/offlineimap/.offlineimaprc
+++ b/offlineimap/.offlineimaprc
@@ -10,7 +10,7 @@ localrepository = alanpearce.eu-local
 remoterepository = alanpearce.eu-remote
 autorefresh = 5
 quick = 2
-postsynchook = mu index --muhome=~/.cache/mu/alanpearce.eu --maildir=%(alanpearcemaildir)s --lazy-check --nocleanup --quiet
+postsynchook = mu index --muhome=~/.cache/mu/alanpearce.eu --maildir=%(alanpearcemaildir)s --lazy-check --nocleanup --quiet || emacsclient -e "(mu4e-update-index)"
  
 [Repository alanpearce.eu-local]
 # OfflineIMAP supports Maildir, GmailMaildir, and IMAP for local repositories.
@@ -35,7 +35,7 @@ localrepository = riseup.net-local
 remoterepository = riseup.net-remote
 autorefresh = 10
 quick = 2
-postsynchook = mu index --muhome=~/.cache/mu/riseup.net --maildir=%(riseupmaildir)s --lazy-check --nocleanup --quiet
+postsynchook = mu index --muhome=~/.cache/mu/riseup.net --maildir=%(riseupmaildir)s --lazy-check --nocleanup --quiet || emacsclient -e "(mu4e-update-index)"
 
 [Repository riseup.net-local]
 type = Maildir
@@ -57,7 +57,7 @@ localrepository = satoshipay.io-local
 remoterepository = satoshipay.io-remote
 autorefresh = 5
 quick = 2
-postsynchook = mu index --muhome=~/.cache/mu/satoshipay.io --maildir=%(satoshipaymaildir)s --lazy-check --nocleanup --quiet
+postsynchook = mu index --muhome=~/.cache/mu/satoshipay.io --maildir=%(satoshipaymaildir)s --lazy-check --nocleanup --quiet || emacsclient -e "(mu4e-update-index)"
 
 [Repository satoshipay.io-local]
 type = GmailMaildir