Re: [PATCH v3 04/10] notmuch-dump: add --format=(notmuch|sup)
authorAustin Clements <amdragon@MIT.EDU>
Sun, 15 Jan 2012 20:35:11 +0000 (15:35 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:12 +0000 (09:42 -0800)
b4/a81ee427bb35549769bb53780795fd3f51c459 [new file with mode: 0644]

diff --git a/b4/a81ee427bb35549769bb53780795fd3f51c459 b/b4/a81ee427bb35549769bb53780795fd3f51c459
new file mode 100644 (file)
index 0000000..46c5374
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <amdragon@mit.edu>\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 E5E4A431FBD\r
+       for <notmuch@notmuchmail.org>; Sun, 15 Jan 2012 12:35:21 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 MnHXcLjDPcow for <notmuch@notmuchmail.org>;\r
+       Sun, 15 Jan 2012 12:35:20 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU\r
+       [18.9.25.13])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5ECCA431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 15 Jan 2012 12:35:20 -0800 (PST)\r
+X-AuditID: 1209190d-b7fbf6d0000008ba-de-4f133887fee9\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 0D.4B.02234.888331F4; Sun, 15 Jan 2012 15:35:20 -0500 (EST)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q0FKZIhr025833; \r
+       Sun, 15 Jan 2012 15:35:19 -0500\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0FKZHO2001827\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Sun, 15 Jan 2012 15:35:18 -0500 (EST)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1RmWnH-00045O-C9; Sun, 15 Jan 2012 15:35:11 -0500\r
+Date: Sun, 15 Jan 2012 15:35:11 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH v3 04/10] notmuch-dump: add --format=(notmuch|sup)\r
+Message-ID: <20120115203511.GB9385@mit.edu>\r
+References: <874nwxbkhr.fsf@zancas.localnet>\r
+       <1326591624-15493-1-git-send-email-david@tethera.net>\r
+       <1326591624-15493-5-git-send-email-david@tethera.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1326591624-15493-5-git-send-email-david@tethera.net>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42IRYrdT0e2wEPY32NTPbLFx2U9mixut3YwW\r
+       12/OZHZg9vjVNpfZ49mqW8weWw69Zw5gjuKySUnNySxLLdK3S+DK+PWkm73gMUdFx/JDTA2M\r
+       E9i7GDk4JARMJLa3iXcxcgKZYhIX7q1n62Lk4hAS2McocXxSDzOEs4FRYtrOJawQzkkmib/X\r
+       zrJAOEsYJV51H2QDGcUioCqx5n0WyCg2AQ2JbfuXM4LYIkDhq9sms4HYzAL2EotmTwLbLCzg\r
+       JnHsXyBImFdAW2JG/0R2iJFzGCW6H21lhkgISpyc+YQFoldL4sa/l0wgvcwC0hLL/3GAhDkF\r
+       nCRuP94FtkpUQEViysltbBMYhWYh6Z6FpHsWQvcCRuZVjLIpuVW6uYmZOcWpybrFyYl5ealF\r
+       ukZ6uZkleqkppZsYQYHOKcm7g/HdQaVDjAIcjEo8vMKqQv5CrIllxZW5hxglOZiURHmLtIX9\r
+       hfiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwtukD5XhTEiurUovyYVLSHCxK4ryqWu/8hATSE0tS\r
+       s1NTC1KLYLIyHBxKErz3zIEaBYtS01Mr0jJzShDSTBycIMN5gIYfBqnhLS5IzC3OTIfIn2JU\r
+       lBLnfQmSEABJZJTmwfXCEtErRnGgV4R5r4FU8QCTGFz3K6DBTECDc1qFQAaXJCKkpBoYz055\r
+       +0q0sMBo4rF7enlxjRUpzvUvwrsFb73vdzTd7XXhQOre/Am9z4QOaETt1VzRIZrQqNNadXHJ\r
+       wovLHzF0BZrMf3J+bsx/x0UTV6wr3PulbTrPlPBcaeFX1nqHTQw33AxZsYPXtENUflLb9QXs\r
+       XNPKy39sWJ5zx3gz69Vzr2L7t8n3ZRjEKrEUZyQaajEXFScCAOSix6cfAwAA\r
+Cc: notmuch@notmuchmail.org, David Bremner <bremner@debian.org>\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, 15 Jan 2012 20:35:22 -0000\r
+\r
+Quoth David Bremner on Jan 14 at  9:40 pm:\r
+> From: David Bremner <bremner@debian.org>\r
+> \r
+> sup is the old format, and remains the default.\r
+> \r
+> Each line of the notmuch format is "msg_id tag tag...tag" where each\r
+> space seperated token is 'hex-encoded' to remove troubling characters.\r
+> In particular this format won't have the same problem with e.g. spaces\r
+> in message-ids or tags; they will be round-trip-able.\r
+\r
+We definitely need a round-trip-able dump format.  Did you consider\r
+using JSON to allow for future flexibility (e.g., expansion of what we\r
+store in the database) and so we don't have to invent our own\r
+encodings?  A JSON format wouldn't necessarily be a reason *not* to\r
+also have this format, especially considering how\r
+shell-script-friendly this is (versus how shell-script-unfriendly JSON\r
+is), I'm just curious what trade-offs you're considering.\r
+\r
+You might want to call this format something more self-descriptive\r
+like "text" or "hextext" or something in case we do want to expand in\r
+the future.  "sup" is probably fine for the legacy format since that's\r
+set in stone at this point.\r