Index: gnupg-1.4.6/doc/gnupg1.info =================================================================== --- gnupg-1.4.6/doc/gnupg1.info +++ gnupg-1.4.6/doc/gnupg1.info @@ -828,6 +828,10 @@ Show revoked and expired user IDs during signature verification. Defaults to no. + show-primary-uid-only + Show only the primary user ID during signature verification. + Defaults to no. + pka-lookups Enable PKA lookups to verify sender addresses. Note that PKA is based on DNS, and so enabling this option may disclose Index: gnupg-1.4.6/doc/gpg.texi =================================================================== --- gnupg-1.4.6/doc/gpg.texi +++ gnupg-1.4.6/doc/gpg.texi @@ -1003,6 +1003,10 @@ Show revoked and expired user IDs during signature verification. Defaults to no. +@item show-primary-uid-only +Show only the primary user ID during signature verification. +Defaults to no. + @item pka-lookups Enable PKA lookups to verify sender addresses. Note that PKA is based on DNS, and so enabling this option may disclose information on when Index: gnupg-1.4.6/g10/gpg.c =================================================================== --- gnupg-1.4.6/g10/gpg.c +++ gnupg-1.4.6/g10/gpg.c @@ -2582,6 +2582,8 @@ N_("show user ID validity during signature verification")}, {"show-unusable-uids",VERIFY_SHOW_UNUSABLE_UIDS,NULL, N_("show revoked and expired user IDs in signature verification")}, + {"show-primary-uid-only",VERIFY_SHOW_ONLY_PRIMARY_UID,NULL, + N_("show only primary user ID in signature verification")}, {"pka-lookups",VERIFY_PKA_LOOKUPS,NULL, N_("validate signatures with PKA data")}, {"pka-trust-increase",VERIFY_PKA_TRUST_INCREASE,NULL, Index: gnupg-1.4.6/g10/mainproc.c =================================================================== --- gnupg-1.4.6/g10/mainproc.c +++ gnupg-1.4.6/g10/mainproc.c @@ -1737,7 +1737,7 @@ /* If we have a good signature and already printed * the primary user ID, print all the other user IDs */ - if ( count && !rc ) { + if ( count && !rc && !(opt.verify_options&VERIFY_SHOW_ONLY_PRIMARY_UID)) { char *p; for( un=keyblock; un; un = un->next ) { if( un->pkt->pkttype != PKT_USER_ID ) Index: gnupg-1.4.6/g10/options.h =================================================================== --- gnupg-1.4.6/g10/options.h +++ gnupg-1.4.6/g10/options.h @@ -324,6 +324,7 @@ #define VERIFY_SHOW_UNUSABLE_UIDS (1<<6) #define VERIFY_PKA_LOOKUPS (1<<7) #define VERIFY_PKA_TRUST_INCREASE (1<<8) +#define VERIFY_SHOW_ONLY_PRIMARY_UID (1<<9) #define KEYSERVER_USE_TEMP_FILES (1<<0) #define KEYSERVER_KEEP_TEMP_FILES (1<<1)