test infrastructure for new dump/restore
authordavid <david@tethera.net>
Sun, 5 Aug 2012 18:13:10 +0000 (15:13 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:48:52 +0000 (09:48 -0800)
c1/cd5ab39d4e04e2103f2c63d7b826ebdda55fb0 [new file with mode: 0644]

diff --git a/c1/cd5ab39d4e04e2103f2c63d7b826ebdda55fb0 b/c1/cd5ab39d4e04e2103f2c63d7b826ebdda55fb0
new file mode 100644 (file)
index 0000000..51b97c4
--- /dev/null
@@ -0,0 +1,73 @@
+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 AB08D431FC2\r
+       for <notmuch@notmuchmail.org>; Sun,  5 Aug 2012 11:13:38 -0700 (PDT)\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 sb56ryXkDh2J for <notmuch@notmuchmail.org>;\r
+       Sun,  5 Aug 2012 11:13:38 -0700 (PDT)\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 E1111431FAE\r
+       for <notmuch@notmuchmail.org>; Sun,  5 Aug 2012 11:13:37 -0700 (PDT)\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 1Sy5KU-0006XJ-O4\r
+       for notmuch@notmuchmail.org; Sun, 05 Aug 2012 15:13:35 -0300\r
+Received: from bremner by zancas.localnet with local (Exim 4.80)\r
+       (envelope-from <bremner@tethera.net>) id 1Sy5KP-0005ww-CK\r
+       for notmuch@notmuchmail.org; Sun, 05 Aug 2012 15:13:25 -0300\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: test infrastructure for new dump/restore\r
+Date: Sun,  5 Aug 2012 15:13:10 -0300\r
+Message-Id: <1344190393-22497-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, 05 Aug 2012 18:13:39 -0000\r
+\r
+This implements an old suggestion of Mark's to get wacky message-ids\r
+into the database directly without relying on underdefined behaviour\r
+of the gmime parser; the previous effort relied on gmime passing\r
+literally through message-ids not delimitted according RFC.\r
+\r
+Also compared to the previous version\r
+(id:"1326591624-15493-10-git-send-email-david@tethera.net"), this now\r
+uses valid UTF-8 text, rather than just ascii, although it is a bit\r
+biased towards ascii because most of the characters that cause\r
+problems are there.\r
+\r
+There is a fair amount of code here, but I hope the generation of\r
+random messages may be more useful in the future.\r
+\r
+The high level goal here is to (re)-introduce a hex-encoding based\r
+dump-restore that can pass this roundtrip test, and probably some\r
+batch tagging facility that shares code.\r
+\r
+If people don't mind things broken up into mini-series (without\r
+obvious gain in new features) like this, I'll probably post the\r
+hex-encoding infrastructure next.\r
+\r