From: Alexander Adolf <alexander.adolf@condition-alpha.com>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs/smime: render decrypted MIME entities in notmuch-show
Date: Thu, 07 Apr 2022 15:02:29 +0200 [thread overview]
Message-ID: <f0ee87f62f70ba402201d8f7b772abd5@condition-alpha.com> (raw)
In-Reply-To: <877d819j1o.fsf@tethera.net>
David Bremner <david@tethera.net> 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
next prev parent reply other threads:[~2022-04-07 13:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 13:43 [PATCH] emacs/smime: render decrypted MIME entities in notmuch-show Alexander Adolf
2022-03-29 13:18 ` David Bremner
2022-04-06 20:23 ` Alexander Adolf
2022-04-07 12:25 ` David Bremner
2022-04-07 13:02 ` Alexander Adolf [this message]
2022-04-07 14:01 ` David Bremner
2022-04-11 15:35 ` Alexander Adolf
2022-04-11 23:36 ` David Bremner
2022-04-12 16:21 ` Alexander Adolf
2022-04-13 23:56 ` David Bremner
2022-05-11 15:41 ` Alexander Adolf
2022-05-16 16:17 ` Alexander Adolf
2022-05-18 10:29 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0ee87f62f70ba402201d8f7b772abd5@condition-alpha.com \
--to=alexander.adolf@condition-alpha.com \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).