Re: How to send a PGP-encrypted email from the CLI?
ckeader via Mutt-users <[email protected]> Sun, 19 Oct 2025 22:46:20 +0100
| Newsgroups | gmane.mail.mutt.user |
|---|---|
| Message-ID | <[email protected]> |
> And I get the error: Error in command line: > protocol=application/pgp-encrypted: unknown command > > Is there a way to accomplish this (ideally, without creating temporary > files for the encrypted part)? This is an intriguingly simple question, and I thought I had an answer, but it seems this is not currently possible. All methods I came across involve encrypting the message and then piping it into mutt. Not surprisingly, the question has been asked here multiple times. This message, "https://marc.info/?l=mutt-users&m=113222153115670&w=2", says: | ... As I was told here in the list, the command line code | doesn't allow encryption. And I'm wondering why that is. It should be possible especially since modern versions of gnupg use gpg-agent, and when mutt is built with the gpgme interface.