summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemail-print-mime-structure2
-rw-r--r--email-print-mime-structure.1.pod5
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.