From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79683 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: X-Image-Url support Date: Fri, 19 Aug 2011 22:08:16 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87hb5dtb9r.fsf_-_@topper.koldfront.dk> References: <87r55ah81n.fsf@COLTRANE.i-did-not-set--mail-host-address--so-tickle-me> <87ipqmglyv.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1313784584 15602 80.91.229.12 (19 Aug 2011 20:09:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 20:09:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27977@lists.math.uh.edu Fri Aug 19 22:09:33 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QuVNj-0002IB-8Q for ding-account@gmane.org; Fri, 19 Aug 2011 22:09:31 +0200 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 1QuVMo-00031R-Oj; Fri, 19 Aug 2011 15:08:34 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QuVMn-00031E-DL for ding@lists.math.uh.edu; Fri, 19 Aug 2011 15:08:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QuVMl-0003lc-GM for ding@lists.math.uh.edu; Fri, 19 Aug 2011 15:08:32 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QuVMi-0005Oo-Kb for ding@gnus.org; Fri, 19 Aug 2011 22:08:28 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QuVMi-0001vg-Cy for ding@gnus.org; Fri, 19 Aug 2011 22:08:28 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([95.166.24.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Aug 2011 22:08:28 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Aug 2011 22:08:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk Mail-Copies-To: never X-Now-Playing: Walking Wounded, Walking Wounded (Everything But The Girl) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79683 Archived-At: 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