gpg: New option --export-filter
authorWerner Koch <wk@gnupg.org>
Fri, 1 Jul 2016 14:50:12 +0000 (16:50 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 1 Jul 2016 14:50:12 +0000 (16:50 +0200)
commit7bfc86c938d11c14ea78b196c82ceba2a2f5317d
tree00e1e8b7b2c1bab6c449ffb396742c034162f585
parent5137bf73ccc98a72c2eeac148e4d4b5d58f0a854
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>
doc/gpg.texi
g10/export.c
g10/gpg.c
g10/main.h