On Sat, Jan 14 2017, Dirk-Jan C. Binnema wrote:
> We don't really know for sure what causes the problem you saw, so we
> need to be careful with conclusions.
I'm now refreshing via mu4e using a dbus hook, which turned out to be
simple enough:
(require 'dbus)
(defun my4e~dbus-update-index ()
(mu4e-update-index)
:ignore)
(dbus-register-method :session "nl.djcbsoftware.mu4e"
"/nl/djcbsoftware/mu4e" "nl.djcbsoftware.mu4e"
"updateIndex" 'my4e~dbus-update-index)
triggered, after sync, with:
dbus-send --session --type=method_call --dest="nl.djcbsoftware.mu4e" \
"/nl/djcbsoftware/mu4e" "nl.djcbsoftware.mu4e.updateIndex"
as such, I've disabled the built-in update timer (not needed anymore).
This is much more responsive, since as soon as the cron sync succeeds,
the index is refreshed and new mail shows instantly.
Not so much crying in the corner after all...
*BUT*
the problem still persists for sent mail, despite this.
Since the index is refreshed just after syncing, mu should always see
a consistent maildir state.