From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8F76C431FAE for ; Sat, 29 Sep 2012 10:55:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QUB9mww7ilUL for ; Sat, 29 Sep 2012 10:55:21 -0700 (PDT) Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU [18.9.25.13]) by olra.theworths.org (Postfix) with ESMTP id B696B431FBC for ; Sat, 29 Sep 2012 10:55:21 -0700 (PDT) X-AuditID: 1209190d-b7f906d0000008de-91-506736096a61 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id BE.E1.02270.90637605; Sat, 29 Sep 2012 13:55:21 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q8THtK09018533; Sat, 29 Sep 2012 13:55:20 -0400 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q8THtJRK004647 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sat, 29 Sep 2012 13:55:20 -0400 (EDT) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1TI1G2-0003Eo-VT; Sat, 29 Sep 2012 13:55:18 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 2/3] test: Add a test for HTML email with inline images Date: Sat, 29 Sep 2012 13:55:13 -0400 Message-Id: <1348941314-8377-3-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1348941314-8377-1-git-send-email-amdragon@mit.edu> References: <1348941314-8377-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixCmqrMtplh5gcPapoMX1mzOZHRg9nq26 xRzAGMVlk5Kak1mWWqRvl8CVcaVjD2vBL66Kr1vfMTcwzuPsYuTkkBAwkXj/9RobhC0mceHe eiCbi0NIYB+jxJOO7YwQzgZGiTWzD0E5j5gkzm3fBFU2l1FievcLsH42AQ2JbfuXM4LYIgLS EjvvzmbtYuTgYBZQk/jTpQISFhZwl/i29w0LiM0ioCrx6dYJdpASXgF7iT33pCGukJd4er8P bCKngIPEgSnbwGwhoJKbh2cxTWDkX8DIsIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXSC83s0Qv NaV0EyM4aCR5dzC+O6h0iFGAg1GJh/fG6dQAIdbEsuLK3EOMkhxMSqK8LjrpAUJ8SfkplRmJ xRnxRaU5qcWHGCU4mJVEeDOKgcp5UxIrq1KL8mFS0hwsSuK8V1Ju+gsJpCeWpGanphakFsFk ZTg4lCR4A0yBhgoWpaanVqRl5pQgpJk4OEGG8wANtwCp4S0uSMwtzkyHyJ9iVJQS5xUFSQiA JDJK8+B6YVH9ilEc6BVh3iCQKh5gQoDrfgU0mAlocNWqNJDBJYkIKakGxvyH8RZRVsLPLwU/ 8I7JUYy3niXpld9kUPxqX0L29rh1yYpxERPy96k1b0sX22Y47a+OL8PF/riL8gF9nmYz3i1+ 36bDX+7JciD8w+Lu6rT1f+6f+2bxg3fR90fxTpZCXjK85pELzV88k941q8GnhONBf+jhbIn7 CzgfaccX3PLROur29pamEktxRqKhFnNRcSIADXyxWcUCAAA= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 17:55:22 -0000 Currently this test passes in Emacs 23 but fails in Emacs 24 (at least on some Linux distributions). --- test/emacs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/test/emacs b/test/emacs index 174a9ac..1f84b91 100755 --- a/test/emacs +++ b/test/emacs @@ -749,4 +749,38 @@ counter=$(test_emacs \ ) test_expect_equal "$counter" 2 + +test_begin_subtest "Rendering HTML mail with images" +add_message '[subject]="HTML mail with images"' \ + '[content-type]="multipart/related; boundary=abcd"' \ + '[body]="--abcd +Content-Type: text/html + + + +--abcd +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-ID: <330@goomoji.gmail> + +R0lGODlhDAAMAKIFAF5LAP/zxAAAANyuAP/gaP///wAAAAAAACH5BAEAAAUALAAAAAAMAAwAAAMl +WLPcGjDKFYi9lxKBOaGcF35DhWHamZUW0K4mAbiwWtuf0uxFAgA7 +--abcd--"' +test_emacs "(notmuch-show \"id:${gen_msg_id}\") + (test-output)" +# Normalize output for Emacs 23 and Emacs 24 +sed -i 's/\[cid\]/*/' OUTPUT +cat <EXPECTED +Notmuch Test Suite (2001-01-05) (inbox) +Subject: HTML mail with images +To: Notmuch Test Suite +Date: Fri, 05 Jan 2001 15:43:57 +0000 + +[ multipart/related ] +[ text/html ] +* +EOF +test_expect_equal_file OUTPUT EXPECTED + + test_done -- 1.7.10