1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-21 14:47:03 +01:00
Werner Koch 5137bf73cc
gpg: New option --import-filter
* g10/gpg.c (oImportFilter): New.
(opts): Add --import-filter.
(main): Handle option.
* g10/import.c: Include recsel.h, init.h, and mbox-util.h.
(import_keep_uid): New global var.
(cleanup_import_globals): New.
(parse_and_set_import_filter): New.
(filter_getval): New.
(apply_keep_uid_filter): New.
(import_one): Apply filter if set.
--

Funny new option.  It can for example be used to export a key with
only one user id:

  gpg --no-options --import --import-options import-export \
      --import-filter keep-uid='mbox=wk@gnupg.org'         \
     < full-key.pub > key-with-one-uid.pub

More features will eventually be added.

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-07-01 16:28:29 +02:00
..
2008-06-25 11:14:48 +00:00
2014-12-14 12:15:21 +01:00
sm/
2006-11-14 10:23:21 +00:00
2010-06-10 10:39:44 +00:00
DCO
2013-04-17 11:26:27 +02:00
2016-06-14 09:06:44 +02:00
2003-01-09 13:24:01 +00:00
2009-07-22 13:33:46 +00:00
2010-06-10 10:39:44 +00:00
2007-07-04 19:49:40 +00:00
2007-03-08 18:31:56 +00:00
2014-07-03 11:03:22 +02:00
2016-07-01 16:28:29 +02:00
2013-04-19 12:01:22 +02:00
2013-02-12 14:15:21 +09:00
2016-04-06 18:45:09 +02:00
2016-01-27 14:00:15 +01:00
2007-05-08 13:59:41 +00:00
2006-08-21 20:20:23 +00:00
2008-06-25 11:14:48 +00:00
2012-11-30 12:47:49 -05:00
2011-08-12 14:40:47 +02:00
2016-01-27 14:00:15 +01:00
2006-12-06 16:38:34 +00:00