From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82735 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.gnus.general Subject: Re: Displaying picture from PGP key if present? Date: Tue, 25 Dec 2012 23:57:21 +0100 Message-ID: References: <87ehirwgjq.fsf@topper.koldfront.dk> <87ip7quzk3.fsf@gnus.org> <87mwx2s62p.fsf@topper.koldfront.dk> <87vcbqtk8q.fsf@gnus.org> <87ip7qs5fm.fsf@topper.koldfront.dk> <878v8mtjbg.fsf@gnus.org> <874njas1yf.fsf@topper.koldfront.dk> <87623qb5vl.fsf@gnus.org> <87sj6t7oe5.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1356476284 5733 80.91.229.3 (25 Dec 2012 22:58:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2012 22:58:04 +0000 (UTC) Cc: ding@gnus.org To: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Original-X-From: ding-owner+M31001@lists.math.uh.edu Tue Dec 25 23:58:20 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TndRt-0003x0-HS for ding-account@gmane.org; Tue, 25 Dec 2012 23:58:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1TndRb-0001Ne-7Y; Tue, 25 Dec 2012 16:57:55 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TndRZ-0001NL-QF for ding@lists.math.uh.edu; Tue, 25 Dec 2012 16:57:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TndRN-0008UU-Vt for ding@lists.math.uh.edu; Tue, 25 Dec 2012 16:57:53 -0600 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TndRM-00061N-3q for ding@gnus.org; Tue, 25 Dec 2012 23:57:40 +0100 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3YWCPv4Bc9z3hhXH; Tue, 25 Dec 2012 23:57:39 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3YWCPv2gkMzbbfk; Tue, 25 Dec 2012 23:57:39 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id Pt3D4JOwpS6Y; Tue, 25 Dec 2012 23:53:04 +0100 (CET) X-Auth-Info: kutoteZJuQ2WpERkjCmHjoYKV0GpijrR3hsVYIBGBMg= Original-Received: from igel.home (ppp-88-217-123-207.dynamic.mnet-online.de [88.217.123.207]) by mail.mnet-online.de (Postfix) with ESMTPA; Tue, 25 Dec 2012 23:57:23 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id B7562CA2A2; Tue, 25 Dec 2012 23:57:22 +0100 (CET) X-Yow: .. this must be what it's like to be a COLLEGE GRADUATE!! In-Reply-To: <87sj6t7oe5.fsf@topper.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Tue, 25 Dec 2012 23:33:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82735 Archived-At: asjo@koldfront.dk (Adam Sj=C3=B8gren) writes: > +(defun epg-key-image (key-id) > + "Return the image of a key, if any" > + (let ((filename (replace-regexp-in-string "\n" "" (shell-command-to-= string (concat "/usr/bin/gpg --photo-viewer 'echo %I >&2' --list-keys " k= ey-id " > /dev/null"))))) That does nothing without --list-options show-photos. Also, the created file should be cleaned up somehow. You should probably use --attribute-fd instead of letting gpg export the image to a file. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."