From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CHYbORriTmImJAAAgWs5BA (envelope-from ) for ; Thu, 07 Apr 2022 15:07:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cJCHNhriTmJLNAEA9RJhRA (envelope-from ) for ; Thu, 07 Apr 2022 15:07:38 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 82F1AB7DA for ; Thu, 7 Apr 2022 15:07:38 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D4E625F70B; Thu, 7 Apr 2022 13:07:35 +0000 (UTC) X-Greylist: delayed 302 seconds by postgrey-1.36 at yantan; Thu, 07 Apr 2022 13:07:33 UTC Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.32]) by mail.notmuchmail.org (Postfix) with ESMTPS id 1C84C5F6C3 for ; Thu, 7 Apr 2022 13:07:33 +0000 (UTC) Received: from [46.244.199.211] (helo=condition-alpha.com) by smtprelay04.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncRmv-0007AF-Cy; Thu, 07 Apr 2022 15:03:01 +0200 Message-Id: From: Alexander Adolf To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs/smime: render decrypted MIME entities in notmuch-show In-Reply-To: <877d819j1o.fsf@tethera.net> References: <9cc1c3dc135b5126efd210ee97b88d6b@condition-alpha.com> <87pmm43nig.fsf@tethera.net> <90f50b09c047913abad928c461b08412@condition-alpha.com> <877d819j1o.fsf@tethera.net> Date: Thu, 07 Apr 2022 15:02:29 +0200 MIME-Version: 1.0 X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Message-ID-Hash: O3TZ7GZWNPDNN6PBGOARSSNO7RSSL3DF X-Message-ID-Hash: O3TZ7GZWNPDNN6PBGOARSSNO7RSSL3DF X-MailFrom: alexander.adolf@condition-alpha.com 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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649336858; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=GSuaEeIYcETah8wa4s8rZhG6RZBUHLRoHa8JgXTx6VM=; b=aEUA8nFlCLWi4kpdpc80fU856knd+RSFtFFrcMxvfoQFHN8xRjn0GRkbQbzA50kVSlr8s9 mVdsp/bvAHIUX1a1d62hD9djZWNqjf8o23pKlz+kxWtv6ouwZ9Orip87TunFoNp/Q/UZVR TurnMwuhWmvqFXiNCuDt72es93KmYsje0F51BaiK2mZr2BlS0teIO1kgnRj93e2bF68JH7 ljGoFdqT5qXvr80pNlZd9rI8xRlBKJLBiave8Y8u7SkK4Ra47eibOymrkWYmeLoMyKsC+H 7hzWDZOhSAVNgMcYGby3foSDeeBM0wbHPsHW7DmM+zcQaUF+NJidwwmeT3q9rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649336858; a=rsa-sha256; cv=none; b=cmsPV1gEwcpXSo0KWc7JBNDOm5/rkhtIFojFb48wI7rjBTeQPj+zQaP9EjmPYZp9eQa+T3 hZOsxKOk0SVn8OjCM90TSuVH3fObnoFoom/ng1IHWsPs/BorD/Juweocuw5fbX0mjNtsdT CW0camGvpOMhfSYmaC560uQMdcBVnkcLvwcP3XUSH7Y+RIY8P1iVHM2u4d2htW4RVcIpIx rCC0ucy2aLNi0+Cc9hbDT7mmOhkuZW3Jg01O4n9bPVEJ3N/QDMLQ5drGGVcIG7T7OAGivn GQYcoHmQQkYIGEkSg+Ac8zxN3DiMHQzbE0Y2o0wjue+V9jGPtH8HkGEfGzQaEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 82F1AB7DA X-Spam-Score: -2.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7K//pgGtkwNB David Bremner writes: > [...] > I think something like the following test (but with an smime encrypted > message instead of the existing PGP/MIME encrypted message. > > test_begin_subtest "process cryptographic MIME parts" > ;; additional variables can be dynamically bound as needed, but this one > ;; in particular is needed for decryption > test_emacs '(let ((notmuch-crypto-process-mime t)) > ;; simulate the user action > (notmuch-show > "id:20091117203301.GV3165@dottiness.seas.harvard.edu") > ;; this is the test framework, write the terminal display to a file > ;; called OUTPUT > (test-visible-output))' > test_expect_equal_file $EXPECTED/notmuch-show-process-crypto-mime-parts-on OUTPUT > > you would also need to create a file with a "screen display" in > $EXPECTED, and add that as part of your patch. > > I hope that helps, > [...] To make this work, I will need to generate two S/MIME test messages. One encrypted only, and one encrypted and signed. Where can I find the S/MIME test key? test/smime directory? Is there a better way for generating the test messages than importing the test key into my "production" keychain? Look to T355-smime for inspiration? Where do I put the generated test messages to be able to use them in the test? Many thanks in advance and cheers, --alexander