Re: [PATCH] test: add basic tests for notmuch new --quiet option
[notmuch-archives.git] / d6 / 93cdaeb566a24ead602d111c83fd6af719b427
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 57A6A431FCF\r
6         for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:01:13 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id eW5yNjIWkJ2Y for <notmuch@notmuchmail.org>;\r
17         Wed, 16 Oct 2013 12:01:08 -0700 (PDT)\r
18 Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com\r
19  [74.125.83.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  E3236431FDB    for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:00:35 -0700\r
22  (PDT)\r
23 Received: by mail-ee0-f45.google.com with SMTP id c50so579835eek.32\r
24         for <notmuch@notmuchmail.org>; Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
28         :references:in-reply-to:references;\r
29         bh=NwfZdhRBcffrWLgeWk1mDpb0/rOnoSbFuhU1rN3mvTk=;\r
30         b=WMfhVWktN5FHBEOmLvnVoaA//sUWmeYdN+4dXBGJGdz3+yfk88Id3eJgly/EzrBwC8\r
31         CxIGgHpEf4ct1c9WaHoiSpglEr0wn6ITcfGb4Dy+rg+j9N0+JY42WSU/+Y7ORfMon5pu\r
32         7OCa5ODjBobA0m6Ym7dcdWJQQS1jfFhZNZvWW26KlK7VBq1PUB9Z04ZYdTYjp6AMaMnp\r
33         19YvcfP/x+itJA87BVP2S1yrICh+1MN2av/0PpOjI0F5Lo9wJODo3SfYyLwGbgVp9hBF\r
34         AqMIkkX//QHtyFPyloGpyIaOsr/y0dpda1411ZF49HiDuewYYm5sdSfrp4w1WhO9d2yi\r
35         TjMQ==\r
36 X-Gm-Message-State:\r
37  ALoCoQmNGlWhFQJzAFVB2pSFF7+dEWXKuG6sZe96WmkMy3Y7NBZ6FhViFuR9WBwd4t+07AFvgm25\r
38 X-Received: by 10.15.56.72 with SMTP id x48mr6113931eew.62.1381950034797;\r
39         Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
40 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
41         [88.195.111.91]) by mx.google.com with ESMTPSA id\r
42         k7sm182973893eeg.13.1969.12.31.16.00.00\r
43         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
44         Wed, 16 Oct 2013 12:00:34 -0700 (PDT)\r
45 From: Jani Nikula <jani@nikula.org>\r
46 To: notmuch@notmuchmail.org\r
47 Subject: [PATCH 6/6] HACK: fix broken messages in the perf test corpus\r
48 Date: Wed, 16 Oct 2013 22:00:13 +0300\r
49 Message-Id:\r
50  <f34f8933d07c627c23eba854acde26adc51bad40.1381948853.git.jani@nikula.org>\r
51 X-Mailer: git-send-email 1.8.4.rc3\r
52 In-Reply-To: <cover.1381948853.git.jani@nikula.org>\r
53 References: <cover.1381948853.git.jani@nikula.org>\r
54 In-Reply-To: <cover.1381948853.git.jani@nikula.org>\r
55 References: <cover.1381948853.git.jani@nikula.org>\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Wed, 16 Oct 2013 19:01:13 -0000\r
69 \r
70 The gmime header parser rejects a lot of messages in the perf test\r
71 corpus which have this in the middle of headers:\r
72 \r
73 Microsoft Mail Internet Headers Version 2.0\r
74 \r
75 The header parsing stops right there. This illustrates a change in the\r
76 parsing. The message is clearly broken, but previously notmuch\r
77 accepted it anyway.\r
78 \r
79 This patch "fixes" the messages in the perf test corpus to be able to\r
80 do fair comparisons of the parsers.\r
81 \r
82 NOT TO BE MERGED, if that isn't obvious. This is just a quick hack.\r
83 ---\r
84  performance-test/perf-test-lib.sh | 4 ++++\r
85  1 file changed, 4 insertions(+)\r
86 \r
87 diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh\r
88 index 9ee7661..caec0d0 100644\r
89 --- a/performance-test/perf-test-lib.sh\r
90 +++ b/performance-test/perf-test-lib.sh\r
91 @@ -84,7 +84,11 @@ add_email_corpus ()\r
92             "${args[@]}"\r
93  \r
94         printf "\n"\r
95 +       printf "Fix broken messages in corpus..."\r
96  \r
97 +       find "${TEST_DIRECTORY}/corpus" -type f -print0 | xargs -0 sed -i -e 's/^Microsoft Mail Internet Headers Version 2\.0/X-Crap: &/'\r
98 +\r
99 +       printf "\n"\r
100      fi\r
101  \r
102      cp -lr $TAG_CORPUS $TMP_DIRECTORY/corpus.tags\r
103 -- \r
104 1.8.4.rc3\r
105 \r