Closed mbunkus closed 3 months ago
Thanks for the report.
Generally, there's no expectation that mu4e-changes are immediately visible when viewed externally; for accurate number it's probably best to use something directly talking to mu4e (which isn't too hard when using emacsclient).
That being said, it is a change of behavior (as part of changes for an unrelated issue) so I've make it do a disk-sync now after indexing completes.
Thank you so much for the incredibly quick fix. I've been running f01360ae9fefc488fe3e439884fc1499c7bdcdcb since yesterday, it it looks to be fixed for me.
Ah, great to hear, thanks!
@djcb Sorry to hijack but could you elaborate on the proper way to use mu4e through emacsclient for something like this? I ran into this issue as well because I couldn't figure out how to get a list of related msgid's from a msgid query using mu4e. I resorted to running mu find -r -f i "msgid:<msgid>"
which has worked quite well for several years.
Describe the bug
I have tmux set up to show the number of unread mails in the status line. For that tmux runs a search that boils down to
mu find flag:unread
.Until updating yesterday from 1.12.5 to 1.12.6 (complete with reboot afterwards) this worked just fine. As soon as new mail arrived, I could find it both in mu4e & mu, and therefore tmux updated the number of unread mail.
This doesn't work reliably anymore. Directly after starting mu4e the external
mu find
still finds those mails. However, that stops at some point. Currently I can find exactly one email when searching with mu4e forflag:unread
, butmu find flag:unread
finds no mail whatsoever.I can make it work for some time again by quitting mu4e. As soon as I do that,
mu find
finds the unread email. I can even restart mu4e;mu find
still finds it. After an undetermined amount of time it cannot find anything anymore.To Reproduce
Run mu4e 1.12.6, let it find new mail. Don't read it in mu4e, but search for
flag:unread
& note the number if mails shown in mu4e. Compare that to the amount found withmu find flag:unread
run from a separate shell. If it matches, wait a while & compare.I haven't found a way to reliably trigger the behavior.
Environment
Arch Linux. Emacs, mu are Arch packages. Emacs 29.4 (Arch package
emacs-nativecomp 29.4-1
), mu 1.12.6 (Arch package 1.12.6-2).I'm 100% certain this used to work with 1.12.5-1 which, according to
/var/log/pacman.log
, I had been running since 2024-05-25 until yesterday, at which point the weird behavior started.Currently there are no updates available for Emacs nor mu.
I have not tried downgrading yet.
Checklist
master
(otherwise, please upgrade).