diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-15 18:00:44 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-15 18:14:32 -0700 |
commit | 2bb2b573ad9ceaee58986b04fd4688fec4129569 (patch) | |
tree | 959bbcf9cf88c2716d4f18f18e34a2cc5cb5adde | |
parent | b9a31898cfe7fd448754a98fdaa8b4145509150d (diff) |
email-print-mime-structure: add --no-use-gpg-agent
This allows the user to avoid being affected by any future change in
the default.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-x | email-print-mime-structure | 2 | ||||
-rw-r--r-- | email-print-mime-structure.1.pod | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/email-print-mime-structure b/email-print-mime-structure index 3f29fb9..4f165b1 100755 --- a/email-print-mime-structure +++ b/email-print-mime-structure @@ -157,6 +157,8 @@ def main() -> None: help='OpenPGP Transferable Secret Key for decrypting') parser.add_argument('--use-gpg-agent', action='store_true', help='Ask local GnuPG installation for decryption') + parser.add_argument('--no-use-gpg-agent', action='store_false', + help='Don\'t ask local GnuPG installation for decryption') parser.set_defaults(use_gpg_agent=False) if argcomplete: diff --git a/email-print-mime-structure.1.pod b/email-print-mime-structure.1.pod index 7201f48..d8545ad 100644 --- a/email-print-mime-structure.1.pod +++ b/email-print-mime-structure.1.pod @@ -47,6 +47,11 @@ either B<--pgpkey=>I<KEYFILE> or with B<--use-gpg-agent>, and it is unable to decrypt an encrypted part, it will emit a warning to stderr. +=item B<--no-use-gpg-agent> + +Don't try to decrypt PGP/MIME-encrypted parts using secret keys found +in the local installation of GnuPG. This is the default. + =item B<--help>, B<-h> Show usage instructions. |