[PATCH, v2] notmuch restore --accumulate

David Bremner david at tethera.net
Sun Oct 16 14:48:38 PDT 2011


On Thu, 29 Sep 2011 19:36:51 +0200, Thomas Schwinge <thomas at schwinge.name> wrote:
> From: Thomas Schwinge <thomas at schwinge.name>
> 
> Flesh out what ``notmuch restore --accumulate'' is supposed to do.  Its tests
> are currently XFAILed; the functionality will be added in another patch.
> 

I was looking at these patches and it occured to me that a
generalization like

     notmuch restore --replace=ALL      current behaviour and default

     notmuch restore --replace=NONE     proposed --accumulate behaviour

     notmuch restore --replace=<regex>  delete all tags matching regex
                                        before adding tags from file.

would solve your use case (some kind of merging?) and the case of
restoring a namespace of tags like "notmuch\..*"

Let the bikeshedding begin!

d


More information about the notmuch mailing list