Eduardo, thank you for your response. I have been trying a variety of tests and scenarios, and after a week of testing, I am no closer to a resolution.
My maildir is over 30Gb with over 200k messages.
% for i in {1..10}; do time mu index --quiet --maildir=mail --lazy-check --nocleanup; sleep 10 ; done
The mean values were:
real 0m0.799s
user 0m0.665s
sys 0m0.085s
So, on the command-line it takes very little time to update.
Unfortunately, on the mu4e side, the issue remains. I reconfigured my setup to look for mail storage optimizations, but that didn't really make any difference. I tried using .noupdate files, but with the update being so fast (as per above), it only served to make the system unworkable as messages went missing, etc.
I am using mu from git ID starting with 7d6c30f.
I tried a number of lisp issues to get to the bottom of what is happening. I used the profiler extensively, but it didn't seem to provide any helpful information on why it was blocking. I have byte-compiled the mu4e directory to see if that improves things, but there wasn't a change.
Basically, the issue remains: on the mu4e-update-interval time, the header view is replaced with "Loading..." for 2-5 seconds, and I cannot edit, etc. in emacs. I have explicitly set it not to call mbsync on update with lazy-check and no cleanup (as per the command-line above) as shown below.
The other odd behavior that has started and drives me crazy: the first time a view a message, it does not use auto-fill-mode or show the images despite their being enabled. If I then review the same image, it uses auto-fill-mode and displays the images...
Cheers,
Brian
(setq mu4e-maildir (expand-file-name "~/mail")
mu4e-get-mail-command 'true
mu4e-mu-binary "/usr/local/bin/mu"
mu4e-update-interval 300
mu4e-html-renderer 'w3m
mu4e-html2text-command 'mu4e-shr2text
mu4e-view-html-plaintext-ratio-heuristic 99999
mu4e-change-filenames-when-moving t
mu4e-sent-messages-behavior 'delete
mu4e-use-fancy-chars nil
mu4e-headers-unread-mark (purecopy '("u" . "✉"))
mu4e-view-show-images t
mu4e-hide-index-messages t
mu4e-show-images t
mu4e-view-image-max-width 800
mu4e-view-image-max-height 800
mu4e-attachment-dir "~/Downloads"
mu4e-headers-leave-behavior 'apply
mu4e-headers-skip-duplicates t
mu4e-headers-visible-lines 15
mu4e-headers-full-search nil
mu4e-headers-include-related nil
mu4e-headers-results-limit 600
mu4e-headers-auto-update t
mu4e-sent-messages-behavior 'delete
mu4e-index-cleanup nil
mu4e-index-lazy-check t
message-citation-line-function nil
message-kill-buffer-on-exit t
mu4e-split-view 'horizontal
mu4e-compose-dont-reply-to-self t
mu4e-compose-signature-auto-include nil
mu4e-compose-context-policy 'ask-if-none
mu4e-context-policy 'pick-first
mu4e-index-update-in-background t
mu4e-confirm-quit nil
gnus-dired-mail-mode 'mu4e-user-agent
mu4e-view-show-addresses t
mail-from-style 'angles
url-mail-command 'compose-mail
mail-user-agent 'mu4e-user-agent)