Notmuch removing messages from the index, when calling `new` two times in a row

Mayeu m at 6x9.fr
Tue Apr 21 09:09:13 PDT 2015


Hi,

I have hit a weird behaviour with notmuch.

I recently saw a drop of the number of messages in my index, and after
doing a backup of the current state of the index, I am able to reproduce
this behaviour fairly consistently. ie: notmuch is purgin at least 50%
of its index of messages that are still in the maildir.

I do the following:

1. remove my notmuch database completely.
2. launching `notmuch new`:

   Found 42059 total files (that's not much mail).
   Processed 42059 total files in 3m 24s (205 files/sec.).
   Added 41331 new messages to the database.

3. launching `notmuch new` right after, without having done anything else
   on my Maildir folder:

   Cleaned up 5 of 156 directories (1m 9s remaining).                                                                                                   
   No new mail. Removed 22211 messages. Detected 378 file renames.

Then I can loop back to step 1 and reproduce the behaviour every single time.

If I keep a window with Notmuch Emacs in it, I can see some e-mail
disapearing, and search not returning result anymore after the second
notmuch new.

Is it a know bug? A feature that I do not understand? Anyway, this make
notmuch almost unusable right now, since I can't have acces to my full
e-mail history, and I endup with conversations with holes in them.

Regards,

-- 
Mayeu a.k.a Matthieu
http://6x9.fr
GPG: A016 F2D8 0472 1186 1B33  A419 22B1 0496 B00D A693


More information about the notmuch mailing list