From 2bb2b573ad9ceaee58986b04fd4688fec4129569 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 15 Nov 2019 18:00:44 -0700 Subject: 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 --- email-print-mime-structure | 2 ++ email-print-mime-structure.1.pod | 5 +++++ 2 files changed, 7 insertions(+) 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 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. -- cgit v1.2.3