1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| | #!/usr/bin/env bash
test_description="mime parsing"
. test-lib.sh
add_rfc822_message <<EOF
From bob.smith@fbi.gov Wed Feb 09 10:06:54 2011
Return-path: <bob.smith@fbi.gov>
Envelope-to: bobafett@archangel.wmdcantina.org
Delivery-date: Wed, 09 Feb 2011 10:06:54 -0400
Received: from fiero.its.cantina.org ([131.202.1.10])
by archangel.wmdcantina.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
(Exim 4.69)
(envelope-from <bob.smith@fbi.gov>)
id 1PnAh4-0000AX-DH
for bobafett@archangel.wmdcantina.org; Wed, 09 Feb 2011 10:06:54 -0400
Received: from mx3.nbpei-ecn.ca (mx3.nbpei-ecn.ca [198.164.163.196])
by fiero.its.cantina.org (8.13.8/8.13.8) with ESMTP id p19E6lst014693
for <bobafett@cantina.org>; Wed, 9 Feb 2011 10:06:47 -0400
Received: from mx3.nbpei-ecn.ca (localhost.localdomain [127.0.0.1])
by localhost (Postfix) with SMTP id EC0C04B8002
for <bobafett@cantina.org>; Wed, 9 Feb 2011 10:06:47 -0400 (AST)
Received: from cibc.ca (mail4.cibc.ca [199.198.251.34])
by mx3.nbpei-ecn.ca (Postfix) with ESMTP id A80824B8003
for <bobafett@cantina.org>; Wed, 9 Feb 2011 10:06:47 -0400 (AST)
From: "Smith, Bob" <Bob.Smith@fbi.gov>
To: "'BOBAFETT@CANTINA.ORG'" <BOBAFETT@cantina.org>
Disposition-Notification-To: "Smith, Bob" <Bob.Smith@fbi.gov>
Return-Receipt-To: <Bob.Smith@FBI.GOV>
Date: Wed, 9 Feb 2011 09:06:43 -0500
Subject:
Thread-Index: AcvIYpRcEJX82QtpQSacs5hsY+i4SQ==
Message-ID: <5BB75198A4300643A295D4678B10F0503BDDF7CEB1@CBMCC-X7-MBX09.ad.fbi.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: multipart/alternative;
boundary="_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_"
MIME-Version: 1.0
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.2.9.135719
X-PerlMx-Spam: Gauge=IIIIIIIII, Probability=9%, Report='
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'
X-Sender-Verified: bob.smith@fbi.gov
--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
quoted printable stuff.
--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
some other stuff
</html>
--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_--
EOF
test_expect_success 'output message as json' "notmuch show --format=json id:5BB75198A4300643A295D4678B10F0503BDDF7CEB1@CBMCC-X7-MBX09.ad.fbi.gov > /dev/null"
test_done
|