[PATCH] RFC: all deleting all properties with a given key
[notmuch-archives.git] / be / 945769becdf27323576cc111d8713c50bd2f53
1 Return-Path: <bremner@tethera.net>\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 CBDDE431FD7\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 18:35:28 -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: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 GGZ7mrjGKw05 for <notmuch@notmuchmail.org>;\r
16         Thu,  1 Mar 2012 18:35:27 -0800 (PST)\r
17 Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
18         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 8BF3C431FB6\r
21         for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 18:35:27 -0800 (PST)\r
22 Received: from fctnnbsc30w-142166230117.dhcp-dynamic.fibreop.nb.bellaliant.net\r
23         ([142.166.230.117] helo=zancas.localnet)\r
24         by tesseract.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32)\r
25         (Exim 4.72) (envelope-from <bremner@tethera.net>)\r
26         id 1S3IL8-00085t-7T; Thu, 01 Mar 2012 22:35:26 -0400\r
27 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
28         (envelope-from <bremner@tethera.net>)\r
29         id 1S3IL2-0001uu-Qq; Thu, 01 Mar 2012 22:35:20 -0400\r
30 From: David Bremner <david@tethera.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH 2/2] test: add new test file for mime parsing.\r
33 Date: Thu,  1 Mar 2012 22:35:08 -0400\r
34 Message-Id: <1330655708-7318-3-git-send-email-david@tethera.net>\r
35 X-Mailer: git-send-email 1.7.9\r
36 In-Reply-To: <1330655708-7318-1-git-send-email-david@tethera.net>\r
37 References: <20120301215738.GA7466@mit.edu>\r
38         <1330655708-7318-1-git-send-email-david@tethera.net>\r
39 X-Spam_bar: -\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 02 Mar 2012 02:35:29 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 For now, just tests one message currently causing notmuch to segfault.\r
58 ---\r
59  test/mime         |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++\r
60  test/notmuch-test |    1 +\r
61  2 files changed, 68 insertions(+), 0 deletions(-)\r
62  create mode 100755 test/mime\r
63 \r
64 diff --git a/test/mime b/test/mime\r
65 new file mode 100755\r
66 index 0000000..5b2d77f\r
67 --- /dev/null\r
68 +++ b/test/mime\r
69 @@ -0,0 +1,67 @@\r
70 +#!/usr/bin/env bash\r
71 +\r
72 +test_description="mime parsing"\r
73 +. test-lib.sh\r
74 +\r
75 +add_rfc822_message <<EOF\r
76 +From bob.smith@fbi.gov Wed Feb 09 10:06:54 2011\r
77 +Return-path: <bob.smith@fbi.gov>\r
78 +Envelope-to: bobafett@archangel.wmdcantina.org\r
79 +Delivery-date: Wed, 09 Feb 2011 10:06:54 -0400\r
80 +Received: from fiero.its.cantina.org ([131.202.1.10])\r
81 +       by archangel.wmdcantina.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\r
82 +       (Exim 4.69)\r
83 +       (envelope-from <bob.smith@fbi.gov>)\r
84 +       id 1PnAh4-0000AX-DH\r
85 +       for bobafett@archangel.wmdcantina.org; Wed, 09 Feb 2011 10:06:54 -0400\r
86 +Received: from mx3.nbpei-ecn.ca (mx3.nbpei-ecn.ca [198.164.163.196])\r
87 +       by fiero.its.cantina.org (8.13.8/8.13.8) with ESMTP id p19E6lst014693\r
88 +       for <bobafett@cantina.org>; Wed, 9 Feb 2011 10:06:47 -0400\r
89 +Received: from mx3.nbpei-ecn.ca (localhost.localdomain [127.0.0.1])\r
90 +       by localhost (Postfix) with SMTP id EC0C04B8002\r
91 +       for <bobafett@cantina.org>; Wed,  9 Feb 2011 10:06:47 -0400 (AST)\r
92 +Received: from cibc.ca (mail4.cibc.ca [199.198.251.34])\r
93 +       by mx3.nbpei-ecn.ca (Postfix) with ESMTP id A80824B8003\r
94 +       for <bobafett@cantina.org>; Wed,  9 Feb 2011 10:06:47 -0400 (AST)\r
95 +From: "Smith, Bob" <Bob.Smith@fbi.gov>\r
96 +To: "'BOBAFETT@CANTINA.ORG'" <BOBAFETT@cantina.org>\r
97 +Disposition-Notification-To: "Smith, Bob" <Bob.Smith@fbi.gov>\r
98 +Return-Receipt-To: <Bob.Smith@FBI.GOV>\r
99 +Date: Wed, 9 Feb 2011 09:06:43 -0500\r
100 +Subject: \r
101 +Thread-Index: AcvIYpRcEJX82QtpQSacs5hsY+i4SQ==\r
102 +Message-ID: <5BB75198A4300643A295D4678B10F0503BDDF7CEB1@CBMCC-X7-MBX09.ad.fbi.gov>\r
103 +Accept-Language: en-US\r
104 +Content-Language: en-US\r
105 +X-MS-Has-Attach: \r
106 +X-MS-TNEF-Correlator: \r
107 +acceptlanguage: en-US\r
108 +Content-Type: multipart/alternative;\r
109 +       boundary="_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_"\r
110 +MIME-Version: 1.0\r
111 +X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.2.9.135719\r
112 +X-PerlMx-Spam: Gauge=IIIIIIIII, Probability=9%, Report='\r
113 + BLANK_SUBJECT 0.1, HTML_NO_HTTP 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, __C230066_P5 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __FRAUD_CONTACT_NUM 0, __HAS_HTML 0, __HAS_MSGID 0, __MIME_HTML 0, __MIME_VERSION 0, __PHISH_FROM 0, __PHISH_FROM1 0, __PHISH_FROM_C 0, __SANE_MSGID 0, __STOCK_PHRASE_8 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0'\r
114 +X-Sender-Verified: bob.smith@fbi.gov\r
115 +\r
116 +--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_\r
117 +Content-Type: text/plain; charset="iso-8859-1"\r
118 +Content-Transfer-Encoding: quoted-printable\r
119 +\r
120 +quoted printable stuff.\r
121 +\r
122 +\r
123 +--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_\r
124 +Content-Type: text/html; charset="iso-8859-1"\r
125 +Content-Transfer-Encoding: quoted-printable\r
126 +\r
127 +<html>\r
128 +some other stuff\r
129 +</html>\r
130 +\r
131 +--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_--\r
132 +\r
133 +\r
134 +EOF\r
135 +test_expect_success 'output message as json' "notmuch show --format=json id:5BB75198A4300643A295D4678B10F0503BDDF7CEB1@CBMCC-X7-MBX09.ad.fbi.gov > /dev/null"\r
136 +test_done\r
137 diff --git a/test/notmuch-test b/test/notmuch-test\r
138 index f03b594..b572f1c 100755\r
139 --- a/test/notmuch-test\r
140 +++ b/test/notmuch-test\r
141 @@ -56,6 +56,7 @@ TESTS="\r
142    emacs-address-cleaning\r
143    emacs-hello\r
144    emacs-show\r
145 +  mime\r
146  "\r
147  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
148  \r
149 -- \r
150 1.7.9\r
151 \r