[PATCH 6/6] HACK: fix broken messages in the perf test corpus
authorJani Nikula <jani@nikula.org>
Wed, 16 Oct 2013 19:00:13 +0000 (22:00 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:27 +0000 (09:57 -0800)
d6/93cdaeb566a24ead602d111c83fd6af719b427 [new file with mode: 0644]

diff --git a/d6/93cdaeb566a24ead602d111c83fd6af719b427 b/d6/93cdaeb566a24ead602d111c83fd6af719b427
new file mode 100644 (file)
index 0000000..465903e
--- /dev/null
@@ -0,0 +1,105 @@
+Return-Path: <jani@nikula.org>\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 57A6A431FCF\r
+       for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:01:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\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 eW5yNjIWkJ2Y for <notmuch@notmuchmail.org>;\r
+       Wed, 16 Oct 2013 12:01:08 -0700 (PDT)\r
+Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com\r
+ [74.125.83.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ E3236431FDB   for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:00:35 -0700\r
+ (PDT)\r
+Received: by mail-ee0-f45.google.com with SMTP id c50so579835eek.32\r
+       for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+       :references:in-reply-to:references;\r
+       bh=NwfZdhRBcffrWLgeWk1mDpb0/rOnoSbFuhU1rN3mvTk=;\r
+       b=WMfhVWktN5FHBEOmLvnVoaA//sUWmeYdN+4dXBGJGdz3+yfk88Id3eJgly/EzrBwC8\r
+       CxIGgHpEf4ct1c9WaHoiSpglEr0wn6ITcfGb4Dy+rg+j9N0+JY42WSU/+Y7ORfMon5pu\r
+       7OCa5ODjBobA0m6Ym7dcdWJQQS1jfFhZNZvWW26KlK7VBq1PUB9Z04ZYdTYjp6AMaMnp\r
+       19YvcfP/x+itJA87BVP2S1yrICh+1MN2av/0PpOjI0F5Lo9wJODo3SfYyLwGbgVp9hBF\r
+       AqMIkkX//QHtyFPyloGpyIaOsr/y0dpda1411ZF49HiDuewYYm5sdSfrp4w1WhO9d2yi\r
+       TjMQ==\r
+X-Gm-Message-State:\r
+ ALoCoQmNGlWhFQJzAFVB2pSFF7+dEWXKuG6sZe96WmkMy3Y7NBZ6FhViFuR9WBwd4t+07AFvgm25\r
+X-Received: by 10.15.56.72 with SMTP id x48mr6113931eew.62.1381950034797;\r
+       Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91]) by mx.google.com with ESMTPSA id\r
+       k7sm182973893eeg.13.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 6/6] HACK: fix broken messages in the perf test corpus\r
+Date: Wed, 16 Oct 2013 22:00:13 +0300\r
+Message-Id:\r
+ <f34f8933d07c627c23eba854acde26adc51bad40.1381948853.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+In-Reply-To: <cover.1381948853.git.jani@nikula.org>\r
+References: <cover.1381948853.git.jani@nikula.org>\r
+In-Reply-To: <cover.1381948853.git.jani@nikula.org>\r
+References: <cover.1381948853.git.jani@nikula.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: Wed, 16 Oct 2013 19:01:13 -0000\r
+\r
+The gmime header parser rejects a lot of messages in the perf test\r
+corpus which have this in the middle of headers:\r
+\r
+Microsoft Mail Internet Headers Version 2.0\r
+\r
+The header parsing stops right there. This illustrates a change in the\r
+parsing. The message is clearly broken, but previously notmuch\r
+accepted it anyway.\r
+\r
+This patch "fixes" the messages in the perf test corpus to be able to\r
+do fair comparisons of the parsers.\r
+\r
+NOT TO BE MERGED, if that isn't obvious. This is just a quick hack.\r
+---\r
+ performance-test/perf-test-lib.sh | 4 ++++\r
+ 1 file changed, 4 insertions(+)\r
+\r
+diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh\r
+index 9ee7661..caec0d0 100644\r
+--- a/performance-test/perf-test-lib.sh\r
++++ b/performance-test/perf-test-lib.sh\r
+@@ -84,7 +84,11 @@ add_email_corpus ()\r
+           "${args[@]}"\r
\r
+       printf "\n"\r
++      printf "Fix broken messages in corpus..."\r
\r
++      find "${TEST_DIRECTORY}/corpus" -type f -print0 | xargs -0 sed -i -e 's/^Microsoft Mail Internet Headers Version 2\.0/X-Crap: &/'\r
++\r
++      printf "\n"\r
+     fi\r
\r
+     cp -lr $TAG_CORPUS $TMP_DIRECTORY/corpus.tags\r
+-- \r
+1.8.4.rc3\r
+\r