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