Neeum Zawan <mailinglists@nawaz.org> writes: > Hi, > > My setup: > > Running version 0.24.2 > > I use maildir. Suddenly, a few days ago, notmuch stopped indexing. When > I run notmuch new, I get: > > Processed 274 total files in almost no time. > Added 33 new messages to the database. > > But it doesn't get added. No error message. A subsequent run gives me > the same result (or more "new messages" if new mail has arrived). I have > a post hook Python script, and it runs fine, but sees no new mails. I've > set up notmuch to tag all new mails with "new", but none of them are > tagged that way. I disabled the Python script - it made no difference. The only things that happen after that message is closing the notmuch database and running the post-new hook. IIUC, you said you disabled the post-new hook so that leaves closing the database. Not sure what could go wrong there, but some things to try - check disk space - run xapian-check on the xapian database Something like: % xapian-check ~/Maildir/.notmuch/xapian - run in gdb and make sure it really runs the call to notmuch_database_destroy - apply the following patch to notmuch-new.c and rebuild to get more information: diff --git a/notmuch-new.c b/notmuch-new.c index c4345705..447f9f7d 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1280,7 +1280,8 @@ notmuch_new_command (notmuch_config_t *config, int argc, char *argv[]) fprintf (stderr, "Note: A fatal error was encountered: %s\n", notmuch_status_to_string (ret)); - notmuch_database_destroy (notmuch); + print_status_database("notmuch new", notmuch, + notmuch_database_destroy (notmuch)); if (hooks && !ret && !interrupted) ret = notmuch_run_hook (db_path, "post-new"); - run notmuch new under strace _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch