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 1E219431FD0 for ; Wed, 20 Jul 2011 12:51:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.313 X-Spam-Level: * X-Spam-Status: No, score=1.313 tagged_above=-999 required=5 tests=[URI_HEX=1.313] 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 bSD2zru0birM for ; Wed, 20 Jul 2011 12:51:56 -0700 (PDT) Received: from mail.sflc.info (mail.sflc.info [216.27.154.199]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6AE5C431FB6 for ; Wed, 20 Jul 2011 12:51:56 -0700 (PDT) Received: from localhost (unknown [10.2.67.174]) by mail.sflc.info (Postfix) with ESMTPSA id AFADBB4C074; Wed, 20 Jul 2011 19:51:50 +0000 (UTC) From: James Vasile To: Jameson Graef Rollins , Alex Ghitza , notmuch@notmuchmail.org Subject: Re: Undo tag operation? In-Reply-To: <874o2g3nka.fsf@servo.factory.finestructure.net> References: <874o2g3nka.fsf@servo.factory.finestructure.net> User-Agent: Notmuch/0.5-344-g86b0fae (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 20 Jul 2011 15:51:54 -0400 Message-ID: <87vcuwraqt.fsf@freedomboxfoundation.org> 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: Wed, 20 Jul 2011 19:51:58 -0000 On Wed, 20 Jul 2011 09:48:53 -0700, Jameson Graef Rollins wrote: Non-text part: multipart/mixed Non-text part: multipart/signed > 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 generally run my notmuch commands through notmuch-retry. See http://notmuch.198994.n3.nabble.com/PATCH-Add-shell-script-notmuch-retry-td417192.html That could be easily amended to log tag commands. You could then restore from your most recent dump and replay all the tag commands since that dump, minus the offending command. Not a perfect solution, but it would work. Maybe I'll build it if I encounter some free time.