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