From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mN5OJo3E4GBPBQEAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 22:11:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QDkAIo3E4GDjUAAA1q6Kng (envelope-from ) for ; Sat, 03 Jul 2021 20:11:57 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 32AF717281 for ; Sat, 3 Jul 2021 22:11:57 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B502529089; Sat, 3 Jul 2021 16:11:45 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C838C271CA for ; Sat, 3 Jul 2021 16:11:41 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id C25245FD21; Sat, 3 Jul 2021 16:11:41 -0400 (EDT) Received: (nullmailer pid 3184220 invoked by uid 1000); Sat, 03 Jul 2021 20:11:39 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 2/2] test: known broken test for emacs display of message/rfc822 parts Date: Sat, 3 Jul 2021 17:11:31 -0300 Message-Id: <20210703201131.3184165-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210703201131.3184165-1-david@tethera.net> References: <20210703201131.3184165-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 3W2OKSXVVMFBUZAFJODI3OJOQAYTYZHS X-Message-ID-Hash: 3W2OKSXVVMFBUZAFJODI3OJOQAYTYZHS 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625343117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=K0tRUL1sY0krhiyGJR6EEvJaf5QcOjKp0LM2+KfBmKY=; b=IaZAVPjaESmLZ6gFow64jdzE9+T5Cco4Oh63cFE5YJuIrVR8gBcjVY8S4LsMZhS/HotEnR 2yV9dwnmVOJZ2WC8qxyhH6LhktuIftb1CzlbAoxVkKCebuOaGqWs2qASFnkEEBM+feFdFC LotyhcxXFTzurIGsJ6NWXD4+qoym5a5Lvaecc6WP1uw2rE4v1dXNNAZHb4SNJOLy4YcutK jgPym3/7VguBRAum+FVu5ZlFcBUtxxVinUco098XJgZqfoHtFoK0HTDA25Iq9p9yaVFHkW gAG/UVOO5CNSR3QdBih2ZxVERmVx1P3RaeEWiZsChjyDs7j/IBceZ8ut8G69uA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625343117; a=rsa-sha256; cv=none; b=alzuNCO8yAKhq1YexAoGgPE1nVXQa+WMjGJrs4xrcaZIN+sfqqxNdF1mlL9HJP2U/KZ7IF Ihv625/wN/Sm9t8WS9D6LkZtn7/V2AOUwunR3EfFwNwi3qIkY9/7ll5Ncf/m5Sem2YoBIj YENdwi2ef6/A7S3MLRyFdkwReRXqCOJNvJIDSt9xOFdOTr154gSV+fHuI6pXI+COPgCmnC JJHKKIytRQBgOxbe2AiArCQoV9zIsgRkhsxXeyw2IOmdNTRfATJKDuzvsdSo4SObBV2G3j r4iFng1DlAY7DrLcdBatqoWGaj+8r7LbK/epu5ldJ107gneKLcVv4gj1p2qv/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 32AF717281 X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6IZbIuIoEdF0 There are at least 3 bugs present. 1) notmuch-show-insert-part-message/rfc822 assumes that message/rfc822 parts will have a ":content" property, but that turns out not to be the case. 2) something deep in gnus wants gnus-newsgroup-charset, but that is defined in gnus-sum, which is not loaded by default. 3) If gnus-sum is loaded, then the display of the message/rfc822 part succeeds, but the buffer gets put into gnus-article-mode, which means that, inter alia, notmuch text properties and keybindings get wiped. --- test/T450-emacs-show.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 9d08d2cc..bf7c1fe0 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -219,6 +219,13 @@ test_emacs '(notmuch-show "id:basic-encrypted@crypto.notmuchmail.org") (test-visible-output)' test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message OUTPUT +test_begin_subtest "show encrypted rfc822 message" +test_subtest_known_broken +test_emacs '(notmuch-show "id:encrypted-rfc822-attachment@crypto.notmuchmail.org") + (test-visible-output)' +fgrep '!!!' OUTPUT > OUTPUT.err +test_expect_equal_file /dev/null OUTPUT.err + test_begin_subtest "show undecryptable message" test_emacs '(notmuch-show "id:simple-encrypted@crypto.notmuchmail.org") (test-visible-output)' -- 2.30.2