mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --export-filter
* g10/gpg.c (oExportFilter): New. (opts): Add --export-filter. (main): Handle option. * g10/export.c: Include recsel.h, init.h, and mbox-util.h. (export_keep_uid): New global var. (cleanup_export_globals): New. (parse_and_set_export_filter): New. (filter_getval): New. (apply_keep_uid_filter): New. (do_export_stream): Apply filter if set. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
5137bf73cc
commit
7bfc86c938
4 changed files with 141 additions and 5 deletions
12
doc/gpg.texi
12
doc/gpg.texi
|
@ -2219,12 +2219,14 @@ opposite meaning. The options are:
|
|||
@end table
|
||||
|
||||
@item --import-filter @code{@var{name}=@var{expr}}
|
||||
@itemx --export-filter @code{@var{name}=@var{expr}}
|
||||
@opindex import-filter
|
||||
This option defines an import filter which is implied to the imported
|
||||
keyblock right before it will be stored. @var{name} defines the type
|
||||
of filter to use, @var{expr} the expression to evaluate. The option
|
||||
can be used several times which then appends more expression to the
|
||||
same @var{name}.
|
||||
@opindex export-filter
|
||||
These options define an import/export filter which are applied to the
|
||||
imported/exported keyblock right before it will be stored/written.
|
||||
@var{name} defines the type of filter to use, @var{expr} the
|
||||
expression to evaluate. The option can be used several times which
|
||||
then appends more expression to the same @var{name}.
|
||||
|
||||
@noindent
|
||||
The available filter types are:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue