From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A086C429E26 for ; Sun, 16 Oct 2011 14:48:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RW++U2qdNpQF for ; Sun, 16 Oct 2011 14:48:44 -0700 (PDT) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A5AED429E25 for ; Sun, 16 Oct 2011 14:48:43 -0700 (PDT) Received: from zancas.localnet (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.64.58]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p9GLmdcE028031 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 16 Oct 2011 18:48:40 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1RFYZS-0001up-VO; Sun, 16 Oct 2011 18:48:38 -0300 From: David Bremner To: Thomas Schwinge , notmuch@notmuchmail.org Subject: Re: [PATCH, v2] notmuch restore --accumulate In-Reply-To: <1317317811-29540-1-git-send-email-thomas@schwinge.name> References: <1315249637-20179-1-git-send-email-thomas@schwinge.name> <1317317811-29540-1-git-send-email-thomas@schwinge.name> User-Agent: Notmuch/0.9 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 16 Oct 2011 18:48:38 -0300 Message-ID: <87sjmsboax.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 21:48:44 -0000 On Thu, 29 Sep 2011 19:36:51 +0200, Thomas Schwinge wrote: > From: Thomas Schwinge > > 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= 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