Fix "notmuch new" (bad performance, and no committing of results).
authorCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:07:27 +0000 (16:07 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:07:27 +0000 (16:07 -0700)
commit89697201080cd8aa3196792be1d0cae45c782952
tree97972c493747494fbe8035e1705ec52292f12f2f
parent16003e1f8f22a4a1e2a63c89941565ae1a7b320b
Fix "notmuch new" (bad performance, and no committing of results).

We were incorrectly only destroying messages in the case of
successful addition to the database, and not in other cases,
(such as failure due to FILE_NOT_EMAIL).

I'm still not entirely sure why this was performing abysmally, (as in
making an operation that should take a small fraction of a second take
10 seconds), nor why it was causing the database to entirely fail to
get new results.

But fortunately, this all seems to work now.
notmuch.c