Mailing List Archive

feature-request: import-option no-import-attributes
Minor feature request;
Could --import-options get a "import-attributes"/"no-import-attributes"
value please?

I'm writing tooling that needs to repeatedly import older keys, and I
want to exclude any attribute uids because they aren't relevant to my
processing.

I started trying to write it myself, but the import.c code was too
complex for 23:00 local time.

--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: feature-request: import-option no-import-attributes [ In reply to ]
On Wed, 24 Jan 2024 07:03, Robin H. Johnson said:
> Minor feature request;
> Could --import-options get a "import-attributes"/"no-import-attributes"
> value please?

$ gpg --import-options full-help | grep attr
ignore-attributes

I hope that ignore-attributes is also okay. Using import-attributes
requires to initialize this first and thus it needs a little bit more
code. There is anyway to clean naming scheme for the sub-options.

https://dev.gnupg.org/rGd4976e35d2ca431b2a651aa11be8a4589c8dd39a

gpg --export FD34556CF77575840F1B8D73A2156B6D520D7F8C \
| gpg --import --import-options import-export,ignore-attributes \
| gpg --show-key

Will be in 2.4.4 to be released in a few days.


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: feature-request: import-option no-import-attributes [ In reply to ]
On Wed, Jan 24, 2024 at 06:32:08PM +0100, Werner Koch wrote:
> On Wed, 24 Jan 2024 07:03, Robin H. Johnson said:
> > Minor feature request;
> > Could --import-options get a "import-attributes"/"no-import-attributes"
> > value please?
>
> $ gpg --import-options full-help | grep attr
> ignore-attributes
>
> I hope that ignore-attributes is also okay. Using import-attributes
> requires to initialize this first and thus it needs a little bit more
> code. There is anyway to clean naming scheme for the sub-options.
>
> https://dev.gnupg.org/rGd4976e35d2ca431b2a651aa11be8a4589c8dd39a
>
> gpg --export FD34556CF77575840F1B8D73A2156B6D520D7F8C \
> | gpg --import --import-options import-export,ignore-attributes \
> | gpg --show-key
>
> Will be in 2.4.4 to be released in a few days.
Thanks Warner, that's great!

--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136