From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 1 Sep 2004 01:10:48 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20040831211048.GA3702@hell.devel.altlinux.ru> Mail-Followup-To: ALT Devel discussion list Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline User-Agent: Mutt/1.5.6+cvs20040715i Subject: [devel] ALT Linux Team X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 21:10:51 -0000 Archived-At: List-Archive: List-Post: --lEGEL1/lMxI0MVQ2 Content-Type: multipart/mixed; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =F3=CF=C2=D2=C1=CC =D4=D5=D4 ruby-gpgme =C9 =D0=CF=D0=D5=D4=CE=CF =D3=D7=C1= =D1=CC =D3=CB=D2=C9=D0=D4=C9=CB, =CB=CF=D4=CF=D2=D9=CA =C7=C5=CE=C5=D2=C9=D4 =D3=D0=C9=D3=CF=CB alias'=CF=D7 =C4=CC=D1 mutt. =ED=CF=D6=C5=D4 =CB=CF=CD= =D5 =D0=D2=C9=C7=CF=C4=C9=D4=D3=D1? mkdir tmp/altkeys cp /usr/lib/alt-gpgkeys/* tmp/altkeys GNUPGHOME=3D$HOME/tmp/altkeys ruby -w getkeys.rb >> ~/.mutt/alias P.S. =F7=CF=D4 =DA=C1=DE=C5=CD gnupg =C8=CF=DE=C5=D4 trustdb =D3=CF=DA=C4= =C1=D7=C1=D4=D8 =D0=D2=C9 =D0=CF=D0=D9=D4=CB=C5 =D0=C5=D2=C5=C2=D2=C1=D4=D8 =D7=D3=C5 =CB=CC=C0=DE=C9? --=20 Regards, Sir Raorn. --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="getkeys.rb" #!/usr/bin/ruby -w require 'gpgme' alt=Hash.new(nil) ctx = GPGME::GpgmeCtx.new ctx.keylist_mode=GPGME::GPGME_KEYLIST_MODE_LOCAL ctx.each_keys(ARGV[0]) do |k| i = 0 while k[GPGME::GPGME_ATTR_KEYID, i] do if k[GPGME::GPGME_ATTR_EMAIL, i] =~ /@altlinux/ then key = k[GPGME::GPGME_ATTR_EMAIL, i].gsub(/@.*$/, '').downcase alt[key] = k[GPGME::GPGME_ATTR_NAME, i] end i += 1 end end alt.keys.sort.each do |id| puts "alias\talt-#{id}\t\"#{alt[id]}\"\t<#{id}@altlinux.ru>" end --vkogqOf2sHV7VnPd-- --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBNOlYVqT7+fkT8woRAusaAKC5TwgxWdfc4Z42E86PciwNEm9jugCgyUky DJZ0eg3zJ7iN/XJr0Z8Ovdg= =77xB -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--