Re: [notmuch] hack to retag a directory
authordavid <david@tethera.net>
Thu, 3 Dec 2009 19:26:56 +0000 (15:26 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:48 +0000 (09:35 -0800)
08/41cab8aa88440586007a984e0775bc52cc30a7 [new file with mode: 0644]

diff --git a/08/41cab8aa88440586007a984e0775bc52cc30a7 b/08/41cab8aa88440586007a984e0775bc52cc30a7
new file mode 100644 (file)
index 0000000..8cf863f
--- /dev/null
@@ -0,0 +1,66 @@
+Return-Path: <bremner@pivot.cs.unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id C0F38431FBC\r
+       for <notmuch@notmuchmail.org>; Thu,  3 Dec 2009 11:27:00 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id S4H4yAfK9cHg for <notmuch@notmuchmail.org>;\r
+       Thu,  3 Dec 2009 11:26:59 -0800 (PST)\r
+Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57])\r
+       by olra.theworths.org (Postfix) with ESMTP id CC1D7431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  3 Dec 2009 11:26:59 -0800 (PST)\r
+Received: from localhost ([127.0.0.1] helo=pivot.cs.unb.ca ident=bremner)\r
+       by pivot.cs.unb.ca with esmtp (Exim 4.69)\r
+       (envelope-from <bremner@pivot.cs.unb.ca>) id 1NGHKM-0003E8-Q0\r
+       for notmuch@notmuchmail.org; Thu, 03 Dec 2009 15:26:59 -0400\r
+Date: Thu, 03 Dec 2009 15:26:56 -0400\r
+Message-ID: <87my1z97un.wl%bremner@pivot.cs.unb.ca>\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+In-Reply-To: <87zl60xjl7.wl%bremner@pivot.cs.unb.ca>\r
+References: <87zl60xjl7.wl%bremner@pivot.cs.unb.ca>\r
+User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=)\r
+       APEL/10.7 Emacs/23.1.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)\r
+MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")\r
+Content-Type: text/plain; charset=US-ASCII\r
+X-Sender-Verified: bremner@pivot.cs.unb.ca\r
+Subject: Re: [notmuch] hack to retag a directory\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 03 Dec 2009 19:27:00 -0000\r
+\r
+At Thu, 03 Dec 2009 09:39:32 -0400,\r
+david@tethera.net wrote:\r
+> I think this will be obsolete pretty soon when the equivalent is\r
+> built-in to notmuch, but in the mean time, here is a script that\r
+> somebody might find useful: retag a whole directory (recursively). I\r
+> don't claim it is nice in any way, but it seems usable for me, taking\r
+> about 5 seconds to retag a directory containing 1000 messages.\r
+\r
+Sigh. And of course the version I posted was broken. I put a fixed version at \r
+\r
+      http://pivot.cs.unb.ca/git/?p=notmuch-scripts.git;a=blob_plain;f=tagdir;hb=HEAD\r
+\r
+You might, or might not also be interested in \r
+\r
+    http://pivot.cs.unb.ca/git/?p=notmuch-scripts.git;a=blob_plain;f=gitmuch;hb=HEAD\r
+\r
+which is the beginnings of how to keep tags in git (for syncing\r
+between machines).  Right now the notmuch restore step is the\r
+bottleneck, but Carl apparently knows how to speed 'notmuch restore'\r
+up.\r
+\r
+  d\r