Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 18056431FD0 for ; Wed, 20 Jul 2011 13:42:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1] 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 yim4xu24znYP for ; Wed, 20 Jul 2011 13:42:30 -0700 (PDT) X-Greylist: delayed 2379 seconds by postgrey-1.32 at olra; Wed, 20 Jul 2011 13:42:30 PDT Received: from ns27638.ovh.net (ns27638.ovh.net [91.121.87.85]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7B4A6431FB6 for ; Wed, 20 Jul 2011 13:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chezlefab.net; s=ovh; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=P2IGKZc5o5P8XbH/VOcAYnbslFuSzX7dIBWfU1XsHpY=; b=XYmgIDx1YJZlUUPQJh41Um01+vjUZU7XnWyYLqh7GhpqtnTe6ZmQu4Jvwk2GbYxqVpwQEt3SizQgrBgzbv30njOz88qmX/DRjB3sE4TmsuUXb4zHvQVUF0yREABz4bU0; Received: from oschwand by ns27638.ovh.net with local (Exim 4.72) (envelope-from ) id 1Qjcyl-0000Bl-KY; Wed, 20 Jul 2011 22:02:47 +0200 Date: Wed, 20 Jul 2011 22:02:47 +0200 From: Olivier Schwander To: Jameson Graef Rollins Subject: Re: Undo tag operation? Message-ID: <20110720200247.GB24284@ns27638.ovh.net> References: <874o2g3nka.fsf@servo.factory.finestructure.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <874o2g3nka.fsf@servo.factory.finestructure.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org 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: Wed, 20 Jul 2011 20:42:32 -0000 Le 20 Jul 2011 09:48, Jameson Graef Rollins a écrit: > On Wed, 20 Jul 2011 16:17:37 +0200, Alex Ghitza wrote: > > I just inadvertently removed the "todo" tag from all my "todo"-tagged > > emails (about 60 of them going back several months, so I doubt I can > > find them all again in my email haystack). So I have a few questions: > > Hey, Alex. This won't help you now, and doesn't really answer your > questions either, but you should periodically back up your tags with the > "dump" command. If you had a dumpfile backup of the tags you could > restore with "restore". hth (for the future). I wonder if it may be possible to create a journal of all the operations on tags: a file where all the changes are registered, with a timestamp. Two benefits: - going through the history to undo mistakes - being able to build a diff of two journals in order to synchronize db on multiple hosts A drawback may be to slow down the changes on tags, since we add one more write each time a tag is added or removed. Olivier