1 Return-Path: <amdragon@mit.edu>
\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 8F76C431FAE
\r
6 for <notmuch@notmuchmail.org>; Sat, 29 Sep 2012 10:55:22 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 QUB9mww7ilUL for <notmuch@notmuchmail.org>;
\r
16 Sat, 29 Sep 2012 10:55:21 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id B696B431FBC
\r
20 for <notmuch@notmuchmail.org>; Sat, 29 Sep 2012 10:55:21 -0700 (PDT)
\r
21 X-AuditID: 1209190d-b7f906d0000008de-91-506736096a61
\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
23 by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id BE.E1.02270.90637605; Sat, 29 Sep 2012 13:55:21 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q8THtK09018533;
\r
27 Sat, 29 Sep 2012 13:55:20 -0400
\r
28 Received: from drake.dyndns.org
\r
29 (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com
\r
30 [209.6.116.242]) (authenticated bits=0)
\r
31 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
32 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q8THtJRK004647
\r
33 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
34 Sat, 29 Sep 2012 13:55:20 -0400 (EDT)
\r
35 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
36 (envelope-from <amdragon@mit.edu>)
\r
37 id 1TI1G2-0003Eo-VT; Sat, 29 Sep 2012 13:55:18 -0400
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH 2/3] test: Add a test for HTML email with inline images
\r
41 Date: Sat, 29 Sep 2012 13:55:13 -0400
\r
42 Message-Id: <1348941314-8377-3-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.10
\r
44 In-Reply-To: <1348941314-8377-1-git-send-email-amdragon@mit.edu>
\r
45 References: <1348941314-8377-1-git-send-email-amdragon@mit.edu>
\r
46 X-Brightmail-Tracker:
\r
47 H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixCmqrMtplh5gcPapoMX1mzOZHRg9nq26
\r
48 xRzAGMVlk5Kak1mWWqRvl8CVcaVjD2vBL66Kr1vfMTcwzuPsYuTkkBAwkXj/9RobhC0mceHe
\r
49 eiCbi0NIYB+jxJOO7YwQzgZGiTWzD0E5j5gkzm3fBFU2l1FievcLsH42AQ2JbfuXM4LYIgLS
\r
50 EjvvzmbtYuTgYBZQk/jTpQISFhZwl/i29w0LiM0ioCrx6dYJdpASXgF7iT33pCGukJd4er8P
\r
51 bCKngIPEgSnbwGwhoJKbh2cxTWDkX8DIsIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXSC83s0Qv
\r
52 NaV0EyM4aCR5dzC+O6h0iFGAg1GJh/fG6dQAIdbEsuLK3EOMkhxMSqK8LjrpAUJ8SfkplRmJ
\r
53 xRnxRaU5qcWHGCU4mJVEeDOKgcp5UxIrq1KL8mFS0hwsSuK8V1Ju+gsJpCeWpGanphakFsFk
\r
54 ZTg4lCR4A0yBhgoWpaanVqRl5pQgpJk4OEGG8wANtwCp4S0uSMwtzkyHyJ9iVJQS5xUFSQiA
\r
55 JDJK8+B6YVH9ilEc6BVh3iCQKh5gQoDrfgU0mAlocNWqNJDBJYkIKakGxvyH8RZRVsLPLwU/
\r
56 8I7JUYy3niXpld9kUPxqX0L29rh1yYpxERPy96k1b0sX22Y47a+OL8PF/riL8gF9nmYz3i1+
\r
57 36bDX+7JciD8w+Lu6rT1f+6f+2bxg3fR90fxTpZCXjK85pELzV88k941q8GnhONBf+jhbIn7
\r
58 CzgfaccX3PLROur29pamEktxRqKhFnNRcSIADXyxWcUCAAA=
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Sat, 29 Sep 2012 17:55:22 -0000
\r
73 Currently this test passes in Emacs 23 but fails in Emacs 24 (at least
\r
74 on some Linux distributions).
\r
76 test/emacs | 34 ++++++++++++++++++++++++++++++++++
\r
77 1 file changed, 34 insertions(+)
\r
79 diff --git a/test/emacs b/test/emacs
\r
80 index 174a9ac..1f84b91 100755
\r
83 @@ -749,4 +749,38 @@ counter=$(test_emacs \
\r
85 test_expect_equal "$counter" 2
\r
88 +test_begin_subtest "Rendering HTML mail with images"
\r
89 +add_message '[subject]="HTML mail with images"' \
\r
90 + '[content-type]="multipart/related; boundary=abcd"' \
\r
92 +Content-Type: text/html
\r
94 +<img src="cid:330@goomoji.gmail">
\r
97 +Content-Type: image/gif
\r
98 +Content-Transfer-Encoding: base64
\r
99 +Content-ID: <330@goomoji.gmail>
\r
101 +R0lGODlhDAAMAKIFAF5LAP/zxAAAANyuAP/gaP///wAAAAAAACH5BAEAAAUALAAAAAAMAAwAAAMl
\r
102 +WLPcGjDKFYi9lxKBOaGcF35DhWHamZUW0K4mAbiwWtuf0uxFAgA7
\r
104 +test_emacs "(notmuch-show \"id:${gen_msg_id}\")
\r
106 +# Normalize output for Emacs 23 and Emacs 24
\r
107 +sed -i 's/\[cid\]/*/' OUTPUT
\r
108 +cat <<EOF >EXPECTED
\r
109 +Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)
\r
110 +Subject: HTML mail with images
\r
111 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
112 +Date: Fri, 05 Jan 2001 15:43:57 +0000
\r
114 +[ multipart/related ]
\r
118 +test_expect_equal_file OUTPUT EXPECTED
\r