--- /dev/null
+Return-Path: <todd@electricoding.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 02655431FD5\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id L1HaBj0QS-dY for <notmuch@notmuchmail.org>;\r
+ Tue, 13 Jan 2015 16:01:00 -0800 (PST)\r
+Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id BD1A5431FC3\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:00 -0800 (PST)\r
+Received: from user-69-73-37-128.knology.net ([69.73.37.128]:38910\r
+ helo=localhost.localdomain)\r
+ by server75.web-hosting.com with esmtpsa (UNKNOWN:AES128-SHA256:128)\r
+ (Exim 4.82) (envelope-from <todd@electricoding.com>)\r
+ id 1YBBOO-001yjE-19; Tue, 13 Jan 2015 19:01:00 -0500\r
+From: Todd <todd@electricoding.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 1/5] Add a failing unit test for indexed mime types\r
+Date: Tue, 13 Jan 2015 18:00:24 -0600\r
+Message-Id: <1421193628-2699-2-git-send-email-todd@electricoding.com>\r
+X-Mailer: git-send-email 1.9.1\r
+In-Reply-To: <1421193628-2699-1-git-send-email-todd@electricoding.com>\r
+References: <1421193628-2699-1-git-send-email-todd@electricoding.com>\r
+In-Reply-To: <8761ce7s16.fsf@nikula.org>\r
+References: <8761ce7s16.fsf@nikula.org>\r
+X-AntiAbuse: This header was added to track abuse,\r
+ please include it with any abuse report\r
+X-AntiAbuse: Primary Hostname - server75.web-hosting.com\r
+X-AntiAbuse: Original Domain - notmuchmail.org\r
+X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]\r
+X-AntiAbuse: Sender Address Domain - electricoding.com\r
+X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id:\r
+ todd@electricoding.com\r
+X-Source: \r
+X-Source-Args: \r
+X-Source-Dir: \r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 14 Jan 2015 00:01:04 -0000\r
+\r
+---\r
+ test/T190-multipart.sh | 32 ++++++++++++++++++++++++++++++++\r
+ 1 file changed, 32 insertions(+)\r
+\r
+diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh\r
+index 85cbf67..26f7c7a 100755\r
+--- a/test/T190-multipart.sh\r
++++ b/test/T190-multipart.sh\r
+@@ -104,6 +104,30 @@ Content-Transfer-Encoding: base64\r
+ 7w0K\r
+ --==-=-=--\r
+ EOF\r
++\r
++cat <<EOF > content_types\r
++From: Todd <todd@example.com>\r
++To: todd@example.com\r
++Subject: odd content types\r
++Date: Mon, 12 Jan 2014 18:12:32 +0000\r
++User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)\r
++Message-ID: <KfjfO2WJBw2hrV2p0gjT@example.com>\r
++MIME-Version: 1.0\r
++Content-Type: multipart/alternative; boundary="==-=-=="\r
++\r
++--==-=-==\r
++Content-Type: application/unique_identifier\r
++\r
++<p>This is an embedded message, with a multipart/alternative part.</p>\r
++\r
++--==-=-==\r
++Content-Type: text/some_other_identifier\r
++\r
++This is an embedded message, with a multipart/alternative part.\r
++\r
++--==-=-==--\r
++EOF\r
++cat content_types >> ${MAIL_DIR}/odd_content_type\r
+ notmuch new > /dev/null\r
+ \r
+ test_begin_subtest "--format=text --part=0, full message"\r
+@@ -727,4 +751,12 @@ test_begin_subtest "html parts included"\r
+ notmuch show --format=json --include-html id:htmlmessage > OUTPUT\r
+ test_expect_equal_json "$(cat OUTPUT)" "$(cat EXPECTED.withhtml)"\r
+ \r
++test_begin_subtest "indexes mime-type"\r
++output=$(notmuch search mimetype:application/unique_identifier | notmuch_search_sanitize)\r
++test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"\r
++\r
++output=$(notmuch search mimetype:text/some_other_identifier | notmuch_search_sanitize)\r
++test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)"\r
++\r
++\r
+ test_done\r
+-- \r
+1.9.1\r
+\r