Re: [PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / ce / 1de642be894b57d061cd51eaf6b019025bbeca
1 Return-Path: <todd@electricoding.com>\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 6B4E3431FDD\r
6         for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 16:31:06 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id nxvhCUaQFX8k for <notmuch@notmuchmail.org>;\r
16         Thu, 15 Jan 2015 16:31:03 -0800 (PST)\r
17 Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 35F14431FBC\r
21         for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 16:31:03 -0800 (PST)\r
22 Received: from user-69-73-37-128.knology.net ([69.73.37.128]:60097\r
23         helo=localhost.localdomain)\r
24         by server75.web-hosting.com with esmtpsa (UNKNOWN:AES128-SHA256:128)\r
25         (Exim 4.82) (envelope-from <todd@electricoding.com>)\r
26         id 1YBuoX-003S2e-NA; Thu, 15 Jan 2015 19:31:01 -0500\r
27 From: Todd <todd@electricoding.com>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [PATCH v3 1/5] Add failing unit tests for indexed mime types\r
30 Date: Thu, 15 Jan 2015 18:30:25 -0600\r
31 Message-Id: <1421368229-4360-1-git-send-email-todd@electricoding.com>\r
32 X-Mailer: git-send-email 1.9.1\r
33 In-Reply-To: <1420849787-4401-1-git-send-email-todd@electricoding.com>\r
34 References: <1420849787-4401-1-git-send-email-todd@electricoding.com>\r
35 X-AntiAbuse: This header was added to track abuse,\r
36         please include it with any abuse report\r
37 X-AntiAbuse: Primary Hostname - server75.web-hosting.com\r
38 X-AntiAbuse: Original Domain - notmuchmail.org\r
39 X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]\r
40 X-AntiAbuse: Sender Address Domain - electricoding.com\r
41 X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id:\r
42         todd@electricoding.com\r
43 X-Source: \r
44 X-Source-Args: \r
45 X-Source-Dir: \r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Fri, 16 Jan 2015 00:31:06 -0000\r
59 \r
60 ---\r
61  test/T190-multipart.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++\r
62  1 file changed, 44 insertions(+)\r
63 \r
64 diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh\r
65 index 85cbf67..57f1b61 100755\r
66 --- a/test/T190-multipart.sh\r
67 +++ b/test/T190-multipart.sh\r
68 @@ -104,6 +104,30 @@ Content-Transfer-Encoding: base64\r
69  7w0K\r
70  --==-=-=--\r
71  EOF\r
72 +\r
73 +cat <<EOF > content_types\r
74 +From: Todd <todd@example.com>\r
75 +To: todd@example.com\r
76 +Subject: odd content types\r
77 +Date: Mon, 12 Jan 2014 18:12:32 +0000\r
78 +User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)\r
79 +Message-ID: <KfjfO2WJBw2hrV2p0gjT@example.com>\r
80 +MIME-Version: 1.0\r
81 +Content-Type: multipart/alternative; boundary="==-=-=="\r
82 +\r
83 +--==-=-==\r
84 +Content-Type: application/unique_identifier\r
85 +\r
86 +<p>This is an embedded message, with a multipart/alternative part.</p>\r
87 +\r
88 +--==-=-==\r
89 +Content-Type: text/some_other_identifier\r
90 +\r
91 +This is an embedded message, with a multipart/alternative part.\r
92 +\r
93 +--==-=-==--\r
94 +EOF\r
95 +cat content_types >> ${MAIL_DIR}/odd_content_type\r
96  notmuch new > /dev/null\r
97  \r
98  test_begin_subtest "--format=text --part=0, full message"\r
99 @@ -727,4 +751,24 @@ test_begin_subtest "html parts included"\r
100  notmuch show --format=json --include-html id:htmlmessage > OUTPUT\r
101  test_expect_equal_json "$(cat OUTPUT)" "$(cat EXPECTED.withhtml)"\r
102  \r
103 +test_begin_subtest "indexes mime-type #1"\r
104 +test_subtest_known_broken\r
105 +output=$(notmuch search mimetype:application/unique_identifier | notmuch_search_sanitize)\r
106 +test_expect_equal "$output" "thread:XXX   2014-01-12 [1/1] Todd; odd content types (inbox unread)"\r
107 +\r
108 +test_begin_subtest "indexes mime-type #2"\r
109 +test_subtest_known_broken\r
110 +output=$(notmuch search mimetype:text/some_other_identifier | notmuch_search_sanitize)\r
111 +test_expect_equal "$output" "thread:XXX   2014-01-12 [1/1] Todd; odd content types (inbox unread)"\r
112 +\r
113 +test_begin_subtest "indexes mime-type #3"\r
114 +test_subtest_known_broken\r
115 +output=$(notmuch search from:todd and mimetype:multipart/alternative | notmuch_search_sanitize)\r
116 +test_expect_equal "$output" "thread:XXX   2014-01-12 [1/1] Todd; odd content types (inbox unread)"\r
117 +\r
118 +test_begin_subtest "search for non-existent mime-type"\r
119 +test_subtest_known_broken\r
120 +output=$(notmuch search mimetype:non-existent/mime-type | notmuch_search_sanitize)\r
121 +test_expect_equal "$output" ""\r
122 +\r
123  test_done\r
124 -- \r
125 1.9.1\r
126 \r