Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: X-Image-Url support
Date: Fri, 19 Aug 2011 22:08:16 +0200	[thread overview]
Message-ID: <87hb5dtb9r.fsf_-_@topper.koldfront.dk> (raw)
In-Reply-To: <87ipqmglyv.fsf@topper.koldfront.dk>

On Thu, 28 Jul 2011 22:59:52 +0200, Adam wrote:

> Has anyone looked at supporting X-Image-Url:?

I have tried implementing support for X-Image-Url: by copy/paste-coding
looking at Julien Danjou's gravatar support.

I have got it working, somewhat; (I haven't looked into caching and
handling -too-ugly, but) the primary problem I have is:

 * How do I get the value of a header that is hidden?

By mimicking gnus-gravatar.el, I am using something to the effect of:

  (gnus-with-article-headers
    (let* ((url (mail-fetch-field "X-Image-Url")))

To get the URL, but this only works if I have X-Image-Url in
gnus-visible-headers, which I don't really fancy...

I tried looking at how Face and X-Face are handled, but that code seemed
way complicated.

Isn't there an easy was to ask for a header that may or may not be
hidden?


  Best regards,

    Adam

-- 
 "Vi är små citroner"                                         Adam Sjøgren
                                                         asjo@koldfront.dk




  parent reply	other threads:[~2011-08-19 20:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28 13:03 What is the consensus concerning Face:, X-Face:, X-Image-Url and gravatar ? Sander Boer
2011-07-28 13:06 ` Julien Danjou
2011-07-28 15:43   ` Sander Boer
2011-07-28 20:59   ` Adam Sjøgren
2011-07-28 21:19     ` Adam Sjøgren
2011-08-19 20:08     ` Adam Sjøgren [this message]
2011-08-21  3:38       ` X-Image-Url support Lars Magne Ingebrigtsen
2011-08-21  9:22         ` Adam Sjøgren
2011-09-29  9:17   ` What is the consensus concerning Face:, X-Face:, X-Image-Url and gravatar ? Ted Zlatanov
2011-07-28 13:14 ` Tassilo Horn
2011-07-28 15:28   ` Dave Abrahams
2011-09-29  9:17   ` Ted Zlatanov

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=87hb5dtb9r.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).