From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: Displaying picture from PGP key if present?
Date: Tue, 25 Dec 2012 14:20:24 +0100 [thread overview]
Message-ID: <874njas1yf.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <878v8mtjbg.fsf@gnus.org>
On Tue, 25 Dec 2012 13:20:03 +0100, Lars wrote:
> asjo@koldfront.dk (Adam Sjøgren) writes:
>> Of the 448 public keys I have in my keyring, 86 have an image - almost
>> 20%.
> In that case it sounds worthwhile. So go ahead. :-)
Thanks!
I guess I should start by looking at how application/pgp-signature and
application/pgp-encrypted parts are displayed.
Ok, so, displaying a signed email is done by mml2015-epg-verify in
mml2015.el by default.
This comes from mm-verify-function-alist in mm-decode.el, where
application/pgp-signature goes to mml2015-verify.
Ok.
Looking through mml2015-epg-verify (for some reason edebug-defun jumps
over the entire function), the function epg-verify-result-to-string
sounds like a good candidate for adding the image.
Maybe changing epg.el would be the right thing to do? I don't know how
to return a string with an image in it, though.
Hey, maybe I can alter the output of epg-verify-result-to-string in
mml2015-epg-verify with a function that finds the key in the string,
checks for an image, and adds if it it exists, instead?
Hm, this is how far I got. Mangling:
(mm-set-handle-multipart-parameter
mm-security-handle 'gnus-info
(epg-verify-result-to-string (epg-context-result-for context 'verify)))
in mml2015-epg-verify into something-that-fetches-the-image-and-adds-it
is kind of... daunting.
> (I know virtually nothing about the entire GPG subsystem in Emacs/Gnus.)
(Heh, and I do? :-))
Best regards,
Adam
--
"Bara russin, ingen kaka" Adam Sjøgren
asjo@koldfront.dk
next prev parent reply other threads:[~2012-12-25 13:20 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-15 14:12 Adam Sjøgren
2012-12-25 11:43 ` Lars Ingebrigtsen
2012-12-25 11:51 ` Adam Sjøgren
2012-12-25 12:00 ` Lars Ingebrigtsen
2012-12-25 12:05 ` Adam Sjøgren
2012-12-25 12:20 ` Lars Ingebrigtsen
2012-12-25 13:20 ` Adam Sjøgren [this message]
2012-12-25 13:47 ` Lars Ingebrigtsen
2012-12-25 22:33 ` Adam Sjøgren
2012-12-25 22:38 ` Adam Sjøgren
2012-12-25 22:43 ` Lars Ingebrigtsen
2012-12-25 22:57 ` Andreas Schwab
2012-12-25 23:06 ` Adam Sjøgren
2012-12-26 0:33 ` Adam Sjøgren
2012-12-26 1:12 ` Adam Sjøgren
2012-12-26 5:44 ` Daiki Ueno
2012-12-26 13:24 ` Adam Sjøgren
2012-12-27 5:16 ` Arne Jørgensen
2012-12-28 21:00 ` Adam Sjøgren
2012-12-28 21:03 ` Adam Sjøgren
2012-12-28 21:09 ` Adam Sjøgren
2012-12-28 22:04 ` Arne Jørgensen
2012-12-28 22:06 ` Adam Sjøgren
2012-12-27 10:06 ` Julien Danjou
2012-12-27 10:38 ` Andreas Schwab
2012-12-27 12:12 ` Adam Sjøgren
2013-02-25 7:19 ` Binjo
2013-02-25 19:13 ` Adam Sjøgren
2013-02-26 2:22 ` Binjo
2013-02-26 19:28 ` Adam Sjøgren
2013-02-27 2:27 ` Binjo
2012-12-26 9:14 ` Andreas Schwab
2012-12-26 13:17 ` Adam Sjøgren
2012-12-26 18:05 ` Andreas Schwab
2012-12-26 22:06 ` Adam Sjøgren
2012-12-26 4:22 ` Daiki Ueno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874njas1yf.fsf@topper.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).