From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IKvxMxtm52GP1AAAgWs5BA (envelope-from ) for ; Wed, 19 Jan 2022 02:15:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WAsqMRtm52GxMwAA9RJhRA (envelope-from ) for ; Wed, 19 Jan 2022 02:15:07 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 37F59166BF for ; Wed, 19 Jan 2022 02:15:07 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A526C5F6BC; Wed, 19 Jan 2022 01:15:01 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 003555F5E1 for ; Wed, 19 Jan 2022 01:14:58 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 567965FC01; Tue, 18 Jan 2022 20:14:57 -0500 (EST) Received: (nullmailer pid 3079139 invoked by uid 1000); Wed, 19 Jan 2022 01:14:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test/emacs: known broken test for reply with extra headers set. Date: Tue, 18 Jan 2022 21:14:51 -0400 Message-Id: <20220119011451.3079127-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: RZG7MF4PHPDJ3YECRRQ2K355JYWCIQUP X-Message-ID-Hash: RZG7MF4PHPDJ3YECRRQ2K355JYWCIQUP X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642554907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=IixnjNmh0+eT9P84l9dWoiGNxSYc1qs64tfSHSL7HIE=; b=jP7l094c+kwZV3XeMiSFXcnrJyrrkp+PtgcgAlbhvJiFItQqMxeBlSKMHZk+kXlmY49K6y HmHOwz5jqs+NChbqmyvTWhWexFKkf2szPuYuWKGQ8vwGPShL5bWkc/H5TO89MczOv97vLP OVcbTeD5WAlw8h9XYYOCjYkQbTn/iwZ12CfrE+14Bf1mmhfgt7qPmYbreBBP6cnHehqI9h 8MscsPLU+SikuEvwnc+ig4WeC+00wmjhbEUjLe3uPUINTSYfcGCWs8ucmPpAkZ9mcERQLk AYnx9Rd/HvBg+hGv31KUkwhCwwR+/Su7Fj7xhG46AHUiYyNqcr36voNi/3fp1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642554907; a=rsa-sha256; cv=none; b=fxGLishpNaV+QYJ8ORA5ymEtGz1DAKYvmovxh9cHy0LE7tbmJZ0mqB+4umozyBz3A6+Lmo oWV2AOYUqm/JtPIIDPSe0f9LQastZ9XZuHOE2qKYTftDyGSqDi6vk2XokQrGwz8LtwXXc2 LN45WF1yK8PTJP0GVud7dTDzNWjJacyVUR8xCBeJ6dJi7PG9y0KQ2bkuzxCB27ZmYzpY29 WocB8tLOjN2ES6fg5lxfBuO+R/oYKo8jsvKjH9bPakcItn9xPZz2LhUbrjabpeWl9n4gKo gYyE7pHCCoR8xShY7IZWffABESF33D/ZbT3ltN8t30tTVgpfJsI+53Tz08mowA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 37F59166BF X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: ROv64ypor/td Although it makes sense for the extra headers to be added to the copy of the message headers included in the sexp/json, it is a bit surprising for them to show in the new message constructed for the reply, especially when, as here, they are always missing/empty. --- test/T310-emacs.sh | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh index 1b6660f0..831df1cc 100755 --- a/test/T310-emacs.sh +++ b/test/T310-emacs.sh @@ -485,6 +485,32 @@ Sender writes: EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Reply with show.extra_headers set" +test_subtest_known_broken +notmuch config set show.extra_headers Received +add_message '[from]="Sender "' \ + [to]=test_suite_other@notmuchmail.org + +test_emacs "(let ((message-hidden-headers '())) + (notmuch-search \"id:\\\"${gen_msg_id}\\\"\") + (notmuch-test-wait) + (notmuch-search-reply-to-thread) + (test-output))" +cat <EXPECTED +From: Notmuch Test Suite +To: Sender +Subject: Re: ${test_subtest_name} +In-Reply-To: <${gen_msg_id}> +Fcc: ${MAIL_DIR}/sent +References: <${gen_msg_id}> +--text follows this line-- +Sender writes: + +> This is just a test message (#${gen_msg_cnt}) +EOF +notmuch config set show.extra_headers +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Reply from address in named group list within emacs" add_message '[from]="Sender "' \ '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \ @@ -680,7 +706,7 @@ References: --text follows this line-- test_suite@notmuchmail.org writes: -> This is just a test message (#7) +> This is just a test message (#${gen_msg_cnt}) EOF test_expect_equal_file EXPECTED OUTPUT -- 2.34.1