Re: [PATCH 1/2] test: Replying to an HTML-only message in emacs
authorAustin Clements <amdragon@MIT.EDU>
Fri, 4 May 2012 18:47:49 +0000 (14:47 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:54 +0000 (09:46 -0800)
db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8 [new file with mode: 0644]

diff --git a/db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8 b/db/f84e3e5cd4a4a0cd52ee2fb4aad706036594f8
new file mode 100644 (file)
index 0000000..ab7173f
--- /dev/null
@@ -0,0 +1,135 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id AD27B431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  4 May 2012 11:47:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Eqp1LzxafcoA for <notmuch@notmuchmail.org>;\r
+       Fri,  4 May 2012 11:47:52 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
+       [18.9.25.12])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31555431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  4 May 2012 11:47:52 -0700 (PDT)\r
+X-AuditID: 1209190c-b7fad6d000000920-81-4fa42457207c\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 5D.ED.02336.75424AF4; Fri,  4 May 2012 14:47:51 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q44Ilppd003502; \r
+       Fri, 4 May 2012 14:47:51 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q44IlovF011293\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Fri, 4 May 2012 14:47:51 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1SQNXi-0005NY-1H; Fri, 04 May 2012 14:47:50 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] test: Replying to an HTML-only message in emacs\r
+In-Reply-To: <1335056093-17621-2-git-send-email-awg+notmuch@xvx.ca>\r
+References: <1335056093-17621-1-git-send-email-awg+notmuch@xvx.ca>\r
+       <1335056093-17621-2-git-send-email-awg+notmuch@xvx.ca>\r
+User-Agent: Notmuch/0.12+132~gf2f390b (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Fri, 04 May 2012 14:47:49 -0400\r
+Message-ID: <87r4uzailm.fsf@awakening.csail.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFnrEIsWRmVeSWpSXmKPExsUixG6nohuussTfYOEzI4sje2axW1y/OZPZ\r
+       gcnj2apbzB5NPxazBjBFcdmkpOZklqUW6dslcGV0TfzKVnBLoOLF+QPsDYyPeLsYOTkkBEwk\r
+       lt7cwQxhi0lcuLeerYuRi0NIYB+jxLEzy6Cc9YwSt948gXJOMEms+3uTHcJZwihxatZsRpB+\r
+       NgENiW37l4PZIgLOEluOvWYDsYUFPCSmr+0A28EJFH/8aAZYjZBApcSN/S/A4qIC8RJ/ejeD\r
+       1bMIqEp82XOHHcTmBbpv+ZclULagxMmZT1hAbGYBLYkb/14yTWAUmIUkNQtJagEj0ypG2ZTc\r
+       Kt3cxMyc4tRk3eLkxLy81CJdQ73czBK91JTSTYygoOSU5NnB+Oag0iFGAQ5GJR7e3RxL/IVY\r
+       E8uKK3MPMUpyMCmJ8gbIA4X4kvJTKjMSizPii0pzUosPMUpwMCuJ8CZ9XewvxJuSWFmVWpQP\r
+       k5LmYFES51XReucnJJCeWJKanZpakFoEk5Xh4FCS4O1XBhoqWJSanlqRlplTgpBm4uAEGc4D\r
+       NHwZSA1vcUFibnFmOkT+FKOilDhvFkhCACSRUZoH1wtLGq8YxYFeEeatA6niASYcuO5XQIOZ\r
+       gAZLGywCGVySiJCSamDMdjDZpliybknIs/9NW7rKNxTI8UjYfaj4E1y4sfLK91jt9zdi/j14\r
+       1cR9Q02E+5qNCcsKVt8ZcxlCrmg9jb47i2Vyzs/pl5Tcrr1jr33wwX4K99/ty5MfpVbbqjwy\r
+       juj1/54Udvlv25GjKvc93n4Pu/vp3tPaY2UF6zQOnVqnM0VezfdaXK2uEktxRqKhFnNRcSIA\r
+       R938J/UCAAA=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 04 May 2012 18:47:53 -0000\r
+\r
+Does the test output depend on the HTML renderer used?  (And should\r
+there be a test dependency on w3m or something?  I must admit, I don't\r
+know how mm's HTML rendering works.)\r
+\r
+On Sat, 21 Apr 2012, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:\r
+> With the latest reply infrastructure, we should be able to nicely\r
+> quote HTML-only emails. But currently emacs quotes the raw HTML\r
+> instead of parsing it first. This commit adds a test for this case.\r
+>\r
+> This test currently marked as broken.\r
+> ---\r
+>  test/emacs |   27 +++++++++++++++++++++++++++\r
+>  1 files changed, 27 insertions(+), 0 deletions(-)\r
+>\r
+> diff --git a/test/emacs b/test/emacs\r
+> index c7510e9..e648f80 100755\r
+> --- a/test/emacs\r
+> +++ b/test/emacs\r
+> @@ -444,6 +444,33 @@ Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:\r
+>  EOF\r
+>  test_expect_equal_file OUTPUT EXPECTED\r
+>  \r
+> +test_begin_subtest "Reply within emacs to an html-only message"\r
+> +test_subtest_known_broken\r
+> +add_message '[content-type]="text/html"' \\r
+> +        '[body]="Hi,<br />This is an <b>HTML</b> test message.<br /><br />OK?"'\r
+> +test_emacs "(let ((message-hidden-headers '()))\r
+> +        (notmuch-show \"id:${gen_msg_id}\")\r
+> +        (notmuch-show-reply)\r
+> +        (test-output))"\r
+> +sed -i -e 's,^User-Agent: Notmuch/.* Emacs/.*,User-Agent: Notmuch/XXX Emacs/XXX,' OUTPUT\r
+> +cat <<EOF >EXPECTED\r
+> +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
+> +To: \r
+> +Subject: Re: Reply within emacs to an html-only message\r
+> +In-Reply-To: <${gen_msg_id}>\r
+> +Fcc: ${MAIL_DIR}/sent\r
+> +References: <${gen_msg_id}>\r
+> +User-Agent: Notmuch/XXX Emacs/XXX\r
+> +--text follows this line--\r
+> +Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
+> +\r
+> +> Hi,\r
+> +> This is an HTML test message.\r
+> +>\r
+> +> OK?\r
+> +EOF\r
+> +test_expect_equal_file OUTPUT EXPECTED\r
+> +\r
+>  test_begin_subtest "Quote MML tags in reply"\r
+>  message_id='test-emacs-mml-quoting@message.id'\r
+>  add_message [id]="$message_id" \\r
+> -- \r
+> 1.7.5.4\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r