From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72704 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: [XEmacs] Gravatar and gnus-article-html Date: Thu, 07 Oct 2010 15:49:54 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: dough.gmane.org 1286434309 19875 80.91.229.12 (7 Oct 2010 06:51:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2010 06:51:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21076@lists.math.uh.edu Thu Oct 07 08:51:48 2010 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 1P3kKN-0003Ly-LO for ding-account@gmane.org; Thu, 07 Oct 2010 08:51:43 +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 1P3kJZ-0007D1-Qc; Thu, 07 Oct 2010 01:50:53 -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 1P3kJY-0007Cm-BI for ding@lists.math.uh.edu; Thu, 07 Oct 2010 01:50:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P3kJN-0002Eg-Nq for ding@lists.math.uh.edu; Thu, 07 Oct 2010 01:50:52 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P3kJM-0006S2-00 for ; Thu, 07 Oct 2010 08:50:41 +0200 Original-Received: from localhost ([127.0.0.1]:35151) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1P3kIp-0002Pm-Ib for ding@gnus.org; Thu, 07 Oct 2010 01:50:07 -0500 X-Hashcash: 1:20:101007:ding@gnus.org::1HPP2pnHcB0aEiP2:0000Domr User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:evVVYUq4jcRI+XdS7Mzvnri+UOc= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72704 Archived-At: Hi, The following advices enable you to display Gravatars and external images in html articles under XEmacs: --8<---------------cut here---------------start------------->8--- (when (featurep 'xemacs) (defadvice url-retrieve (around make-it-work-like-modern-one (url &optional callback cbargs) activate) "Make it work like modern one." (if (functionp callback) (let* (-url-retrieve-is-modernized-p- (retval (let (callback cbargs) (save-excursion ad-do-it)))) (with-current-buffer (cdr retval) (goto-char (point-min)) (apply callback nil cbargs)) (cdr retval)) ad-do-it)) (defadvice url-parse-mime-headers (before dont-delete-header (&optional no-delete switch-buff) activate) "Don't delete header if demanded. Convert CRLF to LF in header." (when (boundp '-url-retrieve-is-modernized-p-) (setq no-delete t) (and switch-buff (set-buffer url-working-buffer)) (goto-char (point-min)) (when (search-forward "\r\n\r\n" nil t) (while (search-backward "\r\n" nil t) (replace-match "\n"))))) (defadvice url-cache-cachable-p (around cache-gravatars (obj) activate) "Enable caching of Gravatars." (if (and url-automatic-caching (equal (url-host obj) "www.gravatar.com")) (setq ad-return-value t) ad-do-it))) --8<---------------cut here---------------end--------------->8--- You have to use the most recent No Gnus. I use: (setq gnus-treat-from-gravatar 'head gnus-gravatar-size 48 mm-text-html-renderer 'gnus-article-html url-automatic-caching t) Why don't you add your face to http://www.gravatar.com , if you haven't done yet? :-)