[PATCH 1/2] test: Replying to an HTML-only message in emacs

Austin Clements amdragon at MIT.EDU
Fri May 4 11:47:49 PDT 2012


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 <awg+notmuch at xvx.ca> 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 <alex.boterolowry at gmail.com> 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,<br />This is an <b>HTML</b> test message.<br /><br />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 <<EOF >EXPECTED
> +From: Notmuch Test Suite <test_suite at notmuchmail.org>
> +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 <test_suite at notmuchmail.org> 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 at message.id'
>  add_message [id]="$message_id" \
> -- 
> 1.7.5.4
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list