Hi, I have tried the command "notmuch reindex id:the-msg-id". Yes, it does fix the database problem. However, as far as I understood your reindex-patches, the command does not touch 'XDIRECTORY' records. So the record about folder "new/" will remain in the database. But it is very minor thing, because it will not affect the work of notmuch at all. So my patch-set fixes the bug, but does not fix the database. And 'reindex' does fix the consequences of the bug. Right in time, because I was going to fix my broken records manually :). Buy the way, I'm not sure I understood the purpose of the 'reindex'. Is it for situations like this? For fixing broken database? Or something more? David Bremner <david@tethera.net> writes: > Yuri Volchkov <yuri.volchkov@gmail.com> writes: > >> Hi, >> >> I have faced a problem, that messages sent by emacs could not be shown >> or found later. The "notmuch show id:<msg_id>" says "no such file or >> directory". >> >> This patch series fixes the problem related to my use case. The >> detailed description of the root cause is provided in the related >> patch. > > I haven't had a chance to look carefully at your series, but I would be > curious if "notmuch reindex id:the-msg-id" fixes the database problem. > notmuch reindex is only in git master at this point. > > d _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch