List the recipients of a message

Pedro Diaz Jimenez pdiaz88@terra.es
Fri Jun 15 20:22:01 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanx!

Didn't know about list-only . Doesn't appear on gpg --help neither. 
(maybe in the doc, huh?) 

Cheers

Pedro



On Friday 15 June 2001 18:12, John A. Martin wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> >>>>> "PDJ" == Pedro Diaz Jimenez
> >>>>> "List the recipients of a message"
> >>>>> Thu, 14 Jun 2001 16:03:14 +0000
>
> PDJ> Does anybody know how to list the recipients of an encrypted
> PDJ> message?.
>
> 'whoto filename'
>
> - -------------- cut here ---->8 ---< head
> #!/bin/bash
>
> tokeys=`cat $1 | \
> gpg --batch --decrypt --list-only --status-fd 1 2>/dev/null | \
> awk '/^\[GNUPG:\] ENC_TO / { print $3 }'`
>
> [ -n "$tokeys" ] && gpg --list-keys $tokeys | grep -v sub
> - ---- 8<------- cut here ----------> tail
>
> jam
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: OpenPGP encrypted mail preferred. See <http://www.gnupg.org/>
>
> iEYEARECAAYFAjsqT/YACgkQUEvv1b/iXy/KVgCdExyY/g8y4azuT7kuyCCrgDl2
> bP4AnRcDTDzf6j1IdrqtEMFiIaRMua12
> =8byX
> -----END PGP SIGNATURE-----
- -- /* * Pedro Diaz Jimenez * pdiaz88@terra.es * pdiaz@acm.asoc.fi.upm.es * * Wanna see how 100000! looks like?: * http://acm.asoc.fi.upm.es/~pdiaz/fact_100.000 * * La sabiduria me persigue, pero yo soy mas rapido * * "Las artes marciales son parte de una filosofía, * no deben ser consideradas un arma. Y por eso, * recuerda: No hay nada como un buen revolver" * Les Luthiers, Iniciacion a las Artes Marciales * */ Random quote: - ------------- Q: Why do firemen wear red suspenders? A: To conform with departmental regulations concerning uniform dress. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7Km3bnu53feEYxlERAtqdAKCMWxzOEA/nzAUtRM5VXExdpwPRGwCfTqlf IotAgyoH/+LhboGpUww8V4Y= =99mJ -----END PGP SIGNATURE-----