From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A2AC36DE0F18 for ; Mon, 22 Apr 2019 10:18:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.144 X-Spam-Level: X-Spam-Status: No, score=-0.144 tagged_above=-999 required=5 tests=[AWL=0.057, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EaYO26_9Wd-b for ; Mon, 22 Apr 2019 10:18:21 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id D60E16DE0F17 for ; Mon, 22 Apr 2019 10:18:20 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1555953497; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=HW5+dVmHXN9lXGur5z+pWQaMyVuz3z4k1jOPQnSfq+o=; b=jUmgcL7kFy0atsvyis6de4LHT+wWVTajZAh88zDZ/agnXpU8/T0n4GmD bYINdxhEkBfZgsWKwNn2O93m3yQsCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1555953497; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=HW5+dVmHXN9lXGur5z+pWQaMyVuz3z4k1jOPQnSfq+o=; b=cEXrnR+4IUte7wgtT9pzDiKSVwWnfi8DoPoHGeLDnUSKkrfo+DXH/dfA M8vbrVDWoG2n17c8EJnu/Cs+YGPEKou5LkPv5bN4dq0354PHAo+Vl1jUQU gtYB9FoH09C+iTmk0gu2F/csdDrmN91Q8qGb8QBvPE/KgFCZYF20eUfXkQ GyC9Wi34G8hOalydJRvcFV4DxJXHjYcMvAmJOh2dE4/zpAzKGEpEuxy19V QziloniU1iFTPpbY2k4Pkjc1h8D2AHL6U2fn2sTXw+b8GQsNUqhGPe5Qkw wDdKEavRIQem1ZYHzoB3QtXuOAOVyMzM/H59yc3cg/dwRBWaEO+i5Q== Received: from fifthhorseman.net (unknown [38.109.115.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id A1354F99D for ; Mon, 22 Apr 2019 13:18:17 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 27E351FFEA; Mon, 22 Apr 2019 13:18:14 -0400 (EDT) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: [PATCH 2/3] test: show what emacs sees of an encrypted message when crypto is disabled Date: Mon, 22 Apr 2019 13:18:13 -0400 Message-Id: <20190422171814.16480-2-dkg@fifthhorseman.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422171814.16480-1-dkg@fifthhorseman.net> References: <20190422171814.16480-1-dkg@fifthhorseman.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Mon, 22 Apr 2019 17:18:21 -0000 Some users may set notmuch-crypto-process-mime to nil, disabling all crypto use. We should have a baseline for what that looks like. --- test/T450-emacs-show.sh | 6 ++++++ .../notmuch-show-decrypted-message-no-crypto | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/emacs-show.expected-output/notmuch-show-decrypted-message-no-crypto diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 5d4df443..de1755d2 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -223,4 +223,10 @@ test_emacs '(notmuch-show "id:simple-encrypted@crypto.notmuchmail.org") (test-visible-output)' test_expect_equal_file $EXPECTED/notmuch-show-undecryptable-message OUTPUT +test_begin_subtest "show encrypted message when not processing crypto" +test_emacs '(let ((notmuch-crypto-process-mime nil)) + (notmuch-show "id:basic-encrypted@crypto.notmuchmail.org") + (test-visible-output))' +test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message-no-crypto OUTPUT + test_done diff --git a/test/emacs-show.expected-output/notmuch-show-decrypted-message-no-crypto b/test/emacs-show.expected-output/notmuch-show-decrypted-message-no-crypto new file mode 100644 index 00000000..e302e452 --- /dev/null +++ b/test/emacs-show.expected-output/notmuch-show-decrypted-message-no-crypto @@ -0,0 +1,10 @@ +test_suite@notmuchmail.org (2000-01-01) (encrypted inbox) +Subject: Here is the password +To: test_suite@notmuchmail.org +Date: Sat, 01 Jan 2000 12:00:00 +0000 + +[ multipart/encrypted ] +[ Unknown encryption status ] +[ Unknown signature status ] +[ application/pgp-encrypted ] +[ application/octet-stream ] -- 2.20.1