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 0D576431FDB
\r
6 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:18:59 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]
\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 EjnRN3RAqeQu for <notmuch@notmuchmail.org>;
\r
17 Thu, 15 Jan 2015 09:18:55 -0800 (PST)
\r
18 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
19 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 99C57431FD9
\r
22 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:18:55 -0800 (PST)
\r
23 Received: by mail-we0-f181.google.com with SMTP id q58so15968587wes.12
\r
24 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:18:53 -0800 (PST)
\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:subject:in-reply-to:references
\r
28 :user-agent:date:message-id:mime-version:content-type;
\r
29 bh=w5nhOLEmClk67Lt3QUw1LOY8PGsneu7qNmtoGKuaYWM=;
\r
30 b=GdIO86/4fzCTFZQelroPauqtAdkZWgYNQU3JuvfcsVk2e0d6xQ/bYK3yAQbZpiUbNl
\r
31 DPoH8sXIyTtmionccMqZABmGKLsfsk1xjCFAZdlVs9Zd8bB3EPNs8h5mRJB3ISuB8Cv6
\r
32 Es0H0bQT9NRpMw1QUnbHAAb7Sol2F4CKWc+Y6dVXJBqh0SMnJUwvN5UwHvIdRtnohvJc
\r
33 I1ffiGiEkD2NU2gPc2NDwYWbvkr4MO3BJPna3b//MeABrUBBeM1P/lS+9aZxLHkxN6zu
\r
34 Q9N3IhH/LbB43oI9AOPanTW1TaZIUKfMuWk+wcD2Jrgvd9Ewqd8io9ikT2oXpyccKhfH
\r
37 ALoCoQl7q1MPK6Dej9RrZSFSHvLamM2mxVvVeHFsXMtmgfXuwkC0TH4VGNd5uim6HqQDfesyfhPE
\r
38 X-Received: by 10.181.29.198 with SMTP id jy6mr28475702wid.0.1421342333220;
\r
39 Thu, 15 Jan 2015 09:18:53 -0800 (PST)
\r
40 Received: from localhost (mobile-internet-bcee14-89.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id h8sm8267860wiy.4.2015.01.15.09.18.52
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Thu, 15 Jan 2015 09:18:52 -0800 (PST)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: Todd <todd@electricoding.com>, notmuch@notmuchmail.org
\r
47 Subject: Re: [PATCH v2 1/5] Add a failing unit test for indexed mime types
\r
48 In-Reply-To: <87a91k9dj3.fsf@nikula.org>
\r
49 References: <1421193628-2699-1-git-send-email-todd@electricoding.com>
\r
50 <1421193628-2699-2-git-send-email-todd@electricoding.com>
\r
51 <87a91k9dj3.fsf@nikula.org>
\r
52 User-Agent: Notmuch/0.19+19~g9060a1f (http://notmuchmail.org) Emacs/24.4.1
\r
53 (x86_64-pc-linux-gnu)
\r
54 Date: Thu, 15 Jan 2015 19:19:04 +0200
\r
55 Message-ID: <871tmw9d2v.fsf@nikula.org>
\r
57 Content-Type: text/plain
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Thu, 15 Jan 2015 17:18:59 -0000
\r
72 On Thu, 15 Jan 2015, Jani Nikula <jani@nikula.org> wrote:
\r
73 > On Wed, 14 Jan 2015, Todd <todd@electricoding.com> wrote:
\r
75 >> test/T190-multipart.sh | 32 ++++++++++++++++++++++++++++++++
\r
76 >> 1 file changed, 32 insertions(+)
\r
78 >> diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh
\r
79 >> index 85cbf67..26f7c7a 100755
\r
80 >> --- a/test/T190-multipart.sh
\r
81 >> +++ b/test/T190-multipart.sh
\r
82 >> @@ -104,6 +104,30 @@ Content-Transfer-Encoding: base64
\r
87 >> +cat <<EOF > content_types
\r
88 >> +From: Todd <todd@example.com>
\r
89 >> +To: todd@example.com
\r
90 >> +Subject: odd content types
\r
91 >> +Date: Mon, 12 Jan 2014 18:12:32 +0000
\r
92 >> +User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)
\r
93 >> +Message-ID: <KfjfO2WJBw2hrV2p0gjT@example.com>
\r
94 >> +MIME-Version: 1.0
\r
95 >> +Content-Type: multipart/alternative; boundary="==-=-=="
\r
98 >> +Content-Type: application/unique_identifier
\r
100 >> +<p>This is an embedded message, with a multipart/alternative part.</p>
\r
103 >> +Content-Type: text/some_other_identifier
\r
105 >> +This is an embedded message, with a multipart/alternative part.
\r
109 >> +cat content_types >> ${MAIL_DIR}/odd_content_type
\r
110 >> notmuch new > /dev/null
\r
112 >> test_begin_subtest "--format=text --part=0, full message"
\r
113 >> @@ -727,4 +751,12 @@ test_begin_subtest "html parts included"
\r
114 >> notmuch show --format=json --include-html id:htmlmessage > OUTPUT
\r
115 >> test_expect_equal_json "$(cat OUTPUT)" "$(cat EXPECTED.withhtml)"
\r
117 >> +test_begin_subtest "indexes mime-type"
\r
119 > test_subtest_known_broken
\r
121 >> +output=$(notmuch search mimetype:application/unique_identifier | notmuch_search_sanitize)
\r
122 >> +test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"
\r
125 > test_begin_subtest "indexes mime-type #2"
\r
126 > test_subtest_known_broken
\r
128 > Then you'd remove test_subtest_known_broken when you add the feature.
\r
130 >> +output=$(notmuch search mimetype:text/some_other_identifier | notmuch_search_sanitize)
\r
131 >> +test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"
\r
133 > I think I'd like to see a subtest for searching
\r
134 > mimetype:multipart/alternative (which should *not* find the message,
\r
137 Looking at the code in patch 3, I think it will index that. Please add
\r
138 the test so we know. ;)
\r
150 >> _______________________________________________
\r
151 >> notmuch mailing list
\r
152 >> notmuch@notmuchmail.org
\r
153 >> http://notmuchmail.org/mailman/listinfo/notmuch
\r