-Think about this race condition:
-
- A client executes "notmuch search"
- Then executes "notmuch show" on a thread
- While user is reading, new mail is added to database for the thread
- Client asks for the thread to be archived.
-
- The bug here is that email that was never read will be
- archived. That's bad. The fix for the above is for the client to
- archive the individual messages already retrieved and shown, not
- the thread. (And in fact, we don't even have functions for removing
- tags on threads.)
-
- But this one is harder to fix:
-
- A client executes "notmuch search"
- While user is reading, new mail is added to database for the thread
- Client asks for a thread to be archived.