diff options
author | Werner Koch <wk@gnupg.org> | 2024-08-29 17:46:39 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-08-29 17:46:39 +0200 |
commit | 4511997e9e1b31c8985405bb6087c3378bb09668 (patch) | |
tree | aa13db958f0f590e4e297807cd5079b80be70dc9 /doc | |
parent | tools: Improve rfc822parse to allow access to headers for longer. (diff) | |
download | gnupg2-4511997e9e1b31c8985405bb6087c3378bb09668.tar.xz gnupg2-4511997e9e1b31c8985405bb6087c3378bb09668.zip |
gpg-mail-tube: New feature --as-attach.
* tools/gpg-mail-tube.c (oAsAttach): NEw.
(opts): Add --as-attach.
(opt): Add .as_attach.
(parse_arguments): Set it.
(mail_tube_encrypt): Detect plain text and hhandle new option.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tools.texi | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/tools.texi b/doc/tools.texi index 75765b5c3..6e95a81a3 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -2171,10 +2171,10 @@ gpgtar --list-archive test1 @c @manpage gpg-mail-tube.1 @node gpg-mail-tube -@section Encrypt rfc822 formated mail in a pipeline +@section Encrypt rfc822 formatted mail in a pipeline @ifset manverb .B gpg-mail-tube -\- Encrypt rfc822 formated mail in a pipeline +\- Encrypt rfc822 formatted mail in a pipeline @end ifset @mansect synopsis @@ -2229,6 +2229,15 @@ Put the given environment string into the environment of this process and of the called gpg. This option is required if there is no other way to set the environemt. +@item --as-attach +@itemx -a +@opindex as-attach +Do not write a PGP/MIME mail but emit a simple body along with an +attachment containing the encrypted body of the input mail. If the +input was a plain text message a simple encrypted file will be +attached. If the input was a multipart MIME message the encrypted +file is of type message/rfc822. + @item --gpg @var{gpgcmd} @opindex gpg Use the specified command @var{gpgcmd} instead of @command{gpg}. |