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 68803431FD5
\r
6 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:09:16 -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 W7h74sKjC-gg for <notmuch@notmuchmail.org>;
\r
17 Thu, 15 Jan 2015 09:09:13 -0800 (PST)
\r
18 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com
\r
19 [74.125.82.41]) (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 D5701431FBC for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:09:12 -0800
\r
23 Received: by mail-wg0-f41.google.com with SMTP id l18so16201237wgh.0
\r
24 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:09:10 -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=sNQqIgLvib/CWrCWgcw2VsS4dX43WMRzvIXO6DLiT0k=;
\r
30 b=AsbFxeuaA66WB0IyFb37Qf3QlbvpkYGkSvp1C0fOgjZSdFn8h98bs+/FIRg3OKAG7c
\r
31 Ce/BFrgo2uJXcy+2DoWE+u+bFNW5oInL6ZLMgXoxai7BX+r0FCrnnZwWnpe4fQOFEil/
\r
32 sN2BjNjzoAwzVM8niRRCbhR8+UVCccWeXfPu61IS3bRootWcqRx8Owir9n0ubhCOzUMW
\r
33 z/2sG+QaXC6a2n/R0DdSbFH+aBaKeHMxWQdFU3EjBjjcyEhBbaFH+14V6GgYCqdiHNLp
\r
34 2JbqcvAVdNEUU/7Su/y34HNQiAluJqeGGYfWArrfae0LNe8c1h0+c4KOFdRfgWcY0A6M
\r
37 ALoCoQnSKlEEfiZ4eaW0cntD5ph6RThAiIA3Cja6F8kFZzaC7iOY95b9WYId60w+xkp4aJxl1OU7
\r
38 X-Received: by 10.194.240.201 with SMTP id wc9mr674249wjc.57.1421341749620;
\r
39 Thu, 15 Jan 2015 09:09:09 -0800 (PST)
\r
40 Received: from localhost (mobile-internet-bcee14-89.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id x2sm2834651wjx.9.2015.01.15.09.09.08
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Thu, 15 Jan 2015 09:09:08 -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: <1421193628-2699-2-git-send-email-todd@electricoding.com>
\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 User-Agent: Notmuch/0.19+19~g9060a1f (http://notmuchmail.org) Emacs/24.4.1
\r
52 (x86_64-pc-linux-gnu)
\r
53 Date: Thu, 15 Jan 2015 19:09:20 +0200
\r
54 Message-ID: <87a91k9dj3.fsf@nikula.org>
\r
56 Content-Type: text/plain
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Thu, 15 Jan 2015 17:09:16 -0000
\r
71 On Wed, 14 Jan 2015, Todd <todd@electricoding.com> wrote:
\r
73 > test/T190-multipart.sh | 32 ++++++++++++++++++++++++++++++++
\r
74 > 1 file changed, 32 insertions(+)
\r
76 > diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh
\r
77 > index 85cbf67..26f7c7a 100755
\r
78 > --- a/test/T190-multipart.sh
\r
79 > +++ b/test/T190-multipart.sh
\r
80 > @@ -104,6 +104,30 @@ Content-Transfer-Encoding: base64
\r
85 > +cat <<EOF > content_types
\r
86 > +From: Todd <todd@example.com>
\r
87 > +To: todd@example.com
\r
88 > +Subject: odd content types
\r
89 > +Date: Mon, 12 Jan 2014 18:12:32 +0000
\r
90 > +User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)
\r
91 > +Message-ID: <KfjfO2WJBw2hrV2p0gjT@example.com>
\r
92 > +MIME-Version: 1.0
\r
93 > +Content-Type: multipart/alternative; boundary="==-=-=="
\r
96 > +Content-Type: application/unique_identifier
\r
98 > +<p>This is an embedded message, with a multipart/alternative part.</p>
\r
101 > +Content-Type: text/some_other_identifier
\r
103 > +This is an embedded message, with a multipart/alternative part.
\r
107 > +cat content_types >> ${MAIL_DIR}/odd_content_type
\r
108 > notmuch new > /dev/null
\r
110 > test_begin_subtest "--format=text --part=0, full message"
\r
111 > @@ -727,4 +751,12 @@ test_begin_subtest "html parts included"
\r
112 > notmuch show --format=json --include-html id:htmlmessage > OUTPUT
\r
113 > test_expect_equal_json "$(cat OUTPUT)" "$(cat EXPECTED.withhtml)"
\r
115 > +test_begin_subtest "indexes mime-type"
\r
117 test_subtest_known_broken
\r
119 > +output=$(notmuch search mimetype:application/unique_identifier | notmuch_search_sanitize)
\r
120 > +test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"
\r
123 test_begin_subtest "indexes mime-type #2"
\r
124 test_subtest_known_broken
\r
126 Then you'd remove test_subtest_known_broken when you add the feature.
\r
128 > +output=$(notmuch search mimetype:text/some_other_identifier | notmuch_search_sanitize)
\r
129 > +test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"
\r
131 I think I'd like to see a subtest for searching
\r
132 mimetype:multipart/alternative (which should *not* find the message,
\r
144 > _______________________________________________
\r
145 > notmuch mailing list
\r
146 > notmuch@notmuchmail.org
\r
147 > http://notmuchmail.org/mailman/listinfo/notmuch
\r