Re: Undo function or history log

Subject: Re: Undo function or history log

Date: Sat, 07 Feb 2015 10:06:42 -0400

To: sfischme@uwaterloo.ca, notmuch

Cc:

From: David Bremner


Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:

> I very much appreciate the ability to have simple shortcuts set tags,
> refresh the view, etc. Unfortunately, sometimes, things happen
> accidentally --- think of the cat walking on the keyboard --- and
> consequently somethings might get lost due to wrong tags.

Hi Sebastian;

We tossed around some ideas based on

   id:1413181203-1676-1-git-send-email-aclements@csail.mit.edu

for some kind of analogue of "git reflog". I think at a basic level this
would not be too hard, but without some more work I think it would
mainly be useful for "last hope disaster recovery", something like
"notmuch restore mtime:-10min".  The main problem I know of is that from
the user's point of view, several writers can change the database
"concurrently". In particular you can imagine scenarios involving
"notmuch new" running in a cron and undoing more than you intended.

d

Thread: