[PATCH v6 00/17] Fix 'notmuch new' atomicity issues

Austin Clements amdragon at MIT.EDU
Mon Sep 26 15:07:01 PDT 2011


Quoth David Bremner on Sep 24 at 11:36 pm:
> On Sat, 24 Sep 2011 00:03:02 -0400, Austin Clements <amdragon at MIT.EDU> wrote:
> > 
> > Awesome.  Only seven more to go!
> 
> The remaining seven are pushed, along with some related debian packaging
> things.

Huzzah!

> Austin, could I bug you for some atomicity related items for NEWS? I
> guess at least the 3 new library calls should be mentioned.

In fact, I've been looking forward to writing some NEWS items!


Correct handling of interruptions during "notmuch new"

  "notmuch new" now operates as a series of small, self-consistent
  transactions, so it can correctly resume after an interruption or
  crash.  Previously, interruption could lose existing tags, fail to
  detect messages on resume, or leave the database in a state
  temporarily or permanently inconsistent with the mail store.

Library changes
---------------

New functions

  notmuch_database_begin_atomic and notmuch_database_end_atomic allow
  multiple database operations to be performed atomically.

  notmuch_database_find_message_by_filename does exactly what it says.


More information about the notmuch mailing list