From: Austin Clements Date: Fri, 4 May 2012 18:47:49 +0000 (+2000) Subject: Re: [PATCH 1/2] test: Replying to an HTML-only message in emacs X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f6716f73e3adf7f88ad3258125c47c8ec0ff1662;p=notmuch-archives.git Re: [PATCH 1/2] test: Replying to an HTML-only message in emacs --- diff --git a/db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8 b/db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8 new file mode 100644 index 000000000..ab7173f51 --- /dev/null +++ b/db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8 @@ -0,0 +1,135 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id AD27B431FB6 + for ; Fri, 4 May 2012 11:47:53 -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 Eqp1LzxafcoA for ; + Fri, 4 May 2012 11:47:52 -0700 (PDT) +Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU + [18.9.25.12]) + by olra.theworths.org (Postfix) with ESMTP id 31555431FAE + for ; Fri, 4 May 2012 11:47:52 -0700 (PDT) +X-AuditID: 1209190c-b7fad6d000000920-81-4fa42457207c +Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) + by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP + id 5D.ED.02336.75424AF4; Fri, 4 May 2012 14:47:51 -0400 (EDT) +Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) + by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q44Ilppd003502; + Fri, 4 May 2012 14:47:51 -0400 +Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) + (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q44IlovF011293 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Fri, 4 May 2012 14:47:51 -0400 (EDT) +Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) + (envelope-from ) + id 1SQNXi-0005NY-1H; Fri, 04 May 2012 14:47:50 -0400 +From: Austin Clements +To: Adam Wolfe Gordon , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/2] test: Replying to an HTML-only message in emacs +In-Reply-To: <1335056093-17621-2-git-send-email-awg+notmuch@xvx.ca> +References: <1335056093-17621-1-git-send-email-awg+notmuch@xvx.ca> + <1335056093-17621-2-git-send-email-awg+notmuch@xvx.ca> +User-Agent: Notmuch/0.12+132~gf2f390b (http://notmuchmail.org) Emacs/23.3.1 + (i486-pc-linux-gnu) +Date: Fri, 04 May 2012 14:47:49 -0400 +Message-ID: <87r4uzailm.fsf@awakening.csail.mit.edu> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFnrEIsWRmVeSWpSXmKPExsUixG6nohuussTfYOEzI4sje2axW1y/OZPZ + gcnj2apbzB5NPxazBjBFcdmkpOZklqUW6dslcGV0TfzKVnBLoOLF+QPsDYyPeLsYOTkkBEwk + lt7cwQxhi0lcuLeerYuRi0NIYB+jxLEzy6Cc9YwSt948gXJOMEms+3uTHcJZwihxatZsRpB+ + NgENiW37l4PZIgLOEluOvWYDsYUFPCSmr+0A28EJFH/8aAZYjZBApcSN/S/A4qIC8RJ/ejeD + 1bMIqEp82XOHHcTmBbpv+ZclULagxMmZT1hAbGYBLYkb/14yTWAUmIUkNQtJagEj0ypG2ZTc + Kt3cxMyc4tRk3eLkxLy81CJdQ73czBK91JTSTYygoOSU5NnB+Oag0iFGAQ5GJR7e3RxL/IVY + E8uKK3MPMUpyMCmJ8gbIA4X4kvJTKjMSizPii0pzUosPMUpwMCuJ8CZ9XewvxJuSWFmVWpQP + k5LmYFES51XReucnJJCeWJKanZpakFoEk5Xh4FCS4O1XBhoqWJSanlqRlplTgpBm4uAEGc4D + NHwZSA1vcUFibnFmOkT+FKOilDhvFkhCACSRUZoH1wtLGq8YxYFeEeatA6niASYcuO5XQIOZ + gAZLGywCGVySiJCSamDMdjDZpliybknIs/9NW7rKNxTI8UjYfaj4E1y4sfLK91jt9zdi/j14 + 1cR9Q02E+5qNCcsKVt8ZcxlCrmg9jb47i2Vyzs/pl5Tcrr1jr33wwX4K99/ty5MfpVbbqjwy + juj1/54Udvlv25GjKvc93n4Pu/vp3tPaY2UF6zQOnVqnM0VezfdaXK2uEktxRqKhFnNRcSIA + R938J/UCAAA= +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: Fri, 04 May 2012 18:47:53 -0000 + +Does the test output depend on the HTML renderer used? (And should +there be a test dependency on w3m or something? I must admit, I don't +know how mm's HTML rendering works.) + +On Sat, 21 Apr 2012, Adam Wolfe Gordon wrote: +> With the latest reply infrastructure, we should be able to nicely +> quote HTML-only emails. But currently emacs quotes the raw HTML +> instead of parsing it first. This commit adds a test for this case. +> +> This test currently marked as broken. +> --- +> test/emacs | 27 +++++++++++++++++++++++++++ +> 1 files changed, 27 insertions(+), 0 deletions(-) +> +> diff --git a/test/emacs b/test/emacs +> index c7510e9..e648f80 100755 +> --- a/test/emacs +> +++ b/test/emacs +> @@ -444,6 +444,33 @@ Alex Botero-Lowry writes: +> EOF +> test_expect_equal_file OUTPUT EXPECTED +> +> +test_begin_subtest "Reply within emacs to an html-only message" +> +test_subtest_known_broken +> +add_message '[content-type]="text/html"' \ +> + '[body]="Hi,
This is an HTML test message.

OK?"' +> +test_emacs "(let ((message-hidden-headers '())) +> + (notmuch-show \"id:${gen_msg_id}\") +> + (notmuch-show-reply) +> + (test-output))" +> +sed -i -e 's,^User-Agent: Notmuch/.* Emacs/.*,User-Agent: Notmuch/XXX Emacs/XXX,' OUTPUT +> +cat <EXPECTED +> +From: Notmuch Test Suite +> +To: +> +Subject: Re: Reply within emacs to an html-only message +> +In-Reply-To: <${gen_msg_id}> +> +Fcc: ${MAIL_DIR}/sent +> +References: <${gen_msg_id}> +> +User-Agent: Notmuch/XXX Emacs/XXX +> +--text follows this line-- +> +Notmuch Test Suite writes: +> + +> +> Hi, +> +> This is an HTML test message. +> +> +> +> OK? +> +EOF +> +test_expect_equal_file OUTPUT EXPECTED +> + +> test_begin_subtest "Quote MML tags in reply" +> message_id='test-emacs-mml-quoting@message.id' +> add_message [id]="$message_id" \ +> -- +> 1.7.5.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch