Re: patch for autodetecting the signing key
Brought to you by:
ftobin
|
From: Frank T. <ft...@ui...> - 2000-10-04 00:56:54
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Friedhelm Buescher, at 21:03 +0200 on Tue, 3 Oct 2000, wrote:
> +while (! /^$/) {
> + $_ = <STDIN>;
> + if (/^From: .+ <(.+)>/) { $signing_key_id = $1; }
> + }
> +
Instead of doing this, I am hoping/planning on having a system where
settings can be based on matching regexes to header lines. E.g.,
something like:
- ----
^From: bo...@bo...
signing-key = foo
^To: buddies.*
encrypt-to-recipients = 1
- -----
...but going that route may be going overboard to solve such the simple
problem of determing the signing-key. Your type of system by simply
trying to get a key from From: might be a simpler approach (although not
as extensible, or useful, if the From: could match multiple signing keys).
- --
Frank Tobin http://www.uiuc.edu/~ftobin/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.3 (FreeBSD)
Comment: pgpenvelope 2.9.0 - http://pgpenvelope.sourceforge.net/
iEYEARECAAYFAjnagFEACgkQVv/RCiYMT6MfFgCfda5hObzgWntx5CKR2mr/D1fB
e6kAoKvi6we+tK8rtW1ZMZnbEz/ueeOb
=AJPg
-----END PGP SIGNATURE-----
|