Re: [PATCH, v2] notmuch restore --accumulate

Subject: Re: [PATCH, v2] notmuch restore --accumulate

Date: Sun, 16 Oct 2011 18:48:38 -0300

To: Thomas Schwinge, notmuch@notmuchmail.org

Cc:

From: David Bremner


On Thu, 29 Sep 2011 19:36:51 +0200, Thomas Schwinge <thomas@schwinge.name> wrote:
> From: Thomas Schwinge <thomas@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

Thread: