Add new dump/restore format and batch tagging.
authordavid <david@tethera.net>
Sun, 18 Nov 2012 19:04:42 +0000 (15:04 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:40 +0000 (09:50 -0800)
16/ca25bbba8d92deee6819feef20de88e7f670b5 [new file with mode: 0644]

diff --git a/16/ca25bbba8d92deee6819feef20de88e7f670b5 b/16/ca25bbba8d92deee6819feef20de88e7f670b5
new file mode 100644 (file)
index 0000000..7fa9d48
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <bremner@tethera.net>\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 43507431FBD\r
+       for <notmuch@notmuchmail.org>; Sun, 18 Nov 2012 11:05:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\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 A++tT9Z8vw2S for <notmuch@notmuchmail.org>;\r
+       Sun, 18 Nov 2012 11:05:14 -0800 (PST)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 9FFB2431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 18 Nov 2012 11:05:14 -0800 (PST)\r
+Received: from fctnnbsc30w-156034089108.dhcp-dynamic.fibreop.nb.bellaliant.net\r
+       ([156.34.89.108] helo=zancas.localnet)\r
+       by tesseract.cs.unb.ca with esmtpsa\r
+       (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72)\r
+       (envelope-from <bremner@tethera.net>) id 1TaAB4-00027v-Rq\r
+       for notmuch@notmuchmail.org; Sun, 18 Nov 2012 15:05:11 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.80)\r
+       (envelope-from <bremner@tethera.net>) id 1TaAAz-0001I4-AD\r
+       for notmuch@notmuchmail.org; Sun, 18 Nov 2012 15:05:05 -0400\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: Add new dump/restore format and batch tagging.\r
+Date: Sun, 18 Nov 2012 15:04:42 -0400\r
+Message-Id: <1353265498-3839-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Spam_bar: -\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Sun, 18 Nov 2012 19:05:15 -0000\r
+\r
+This is a patch series with some history, if you will forgive the\r
+semi-inadvertant pun. I list that at that end, for the curious.\r
+\r
+If this series goes in, in the future we might consider whether\r
+restore --accumulate provides important functionality over batch\r
+tagging; at the moment I suggest leaving it as the extra code to\r
+support it is minimal, and it does support peoples existing scripts\r
+using the old dump/restore format.\r
+\r
+History\r
+-------\r
+\r
+About 1 year ago, Petter Reinholdtsen observed a problem with dumping\r
+and restoring message-id's with spaces in them. \r
+\r
+    id:2flfwhht87d.fsf@diskless.uio.no\r
+\r
+There followed a proposed fix\r
+\r
+      id:1323808075-7417-1-git-send-email-david@tethera.net\r
+\r
+Which Dmitry had a few helpful things to say about the hex encoding\r
+libs.\r
+\r
+Jani took that foundation and proposed two versions of the batch\r
+tagging, most recently at\r
+\r
+id:cover.1334404979.git.jani@nikula.org. \r
+\r
+There was some discussion with Jamie about the file format for batch\r
+tagging in the thread\r
+\r
+     id:cover.1333231401.git.jani@nikula.org\r
+\r
+id:1323808075-7417-1-git-send-email-david@tethera.net\r
+The first 6 of these patches obsolete the series\r
+\r
+    id:1345382314-5330-1-git-send-email-david@tethera.net\r
+\r
+which was revied by Tomi and Ethan. I think I implemented their\r
+suggestions.\r
+\r
+Although I didn't re-read that whole thread, I believe this version of\r
+the patches address's Jamie's concerns by using exactly the same\r
+format for restore and tag --batch (renamed from Jani's choice of\r
+--stdin).\r
+\r