On 22/08/15 10:27, Stefano Zacchiroli wrote: > On Sat, Aug 22, 2015 at 10:07:17AM +0200, Tomasz Buchert wrote: > > > How (often) do you run "notmuch new"? > > After each offlineimap run. > > OK. > > > So when I say "new" mail I don't literally mean "newly synced > > messages", but only messages that are in "new/" maildir. I now > > remember that I also have a personal patch on offlineimap: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789625 > > If this is related to the general indexing ability of notmuch > w.r.t. offlineimap, then I guess it would not be a bug in notmuch-mutt. > > But still, I'm not 100% sure we are on the same page. > > First of all, I cannot reproduce it using mutt only. I've tried flipping > the new bit in mutt, sync the maildir (which moves mails to the new/ > subdir), and try reconstructing the thread after that. As expected, if I > do *not* run "notmuch new" before searching, the thread will be > incomplete. But this is not a bug, is just the trade-off of notmuch > non-synchronous updates. If I do run "notmuch new" and then search, the > thread is complete; again, as expected. > > Do you confirm you have the same behaviour, using mutt?
My problem is not about reconstructing the thread. I'm unable to search even for old messages. Or, to be precise, it seems that when I <F8> and type my query, mutt switches to notmuch results and then *immediately* switches to one of my mailboxes with new messages. > > Then I've tried to do the same with offlineimap, verifying that the mail > in new has the trailing ":2", or similar. To be sure, I've interrupted > offlineimap before it completes the sync, ensuring that "notmuch new" > does not kick in. As expected, notmuch cannot rebuild the complete > thread. But, after a "notmuch new", it is able to do so. It seems to me that notmuch new works just fine. And again, my problem is not about rebuilding threads. > > So it still seems to me that there is no bug here or, alternatively, > that there is one I cannot reproduce. > > Might it be that you're looking at your maildirs while offlineimap is > still running? In that case, you will immediately see new mail, but > "notmuch new" hasn't been run yet, so notmuch is unaware of new > messages. I sometimes do browse while notmuch is running, but the problem exists nevertheless. > > Cheers. I'll try to find you at DebConf if you are still there and show you what is happening. > -- > Stefano Zacchiroli . . . . . . . [email protected] . . . . o . . . o . o > Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o > Former Debian Project Leader . . . . . @zacchiro . . . . o o o . . . o . > « the first rule of tautology club is the first rule of tautology club » > Cheers, Tomasz
signature.asc
Description: Digital signature

