From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74158 Path: news.gmane.org!not-for-mail From: yamaoka@jpl.org (Katsumi Yamaoka) Newsgroups: gmane.emacs.gnus.general Subject: gravatar position Date: Fri, 19 Nov 2010 08:50:20 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1290124307 13823 80.91.229.12 (18 Nov 2010 23:51:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 23:51:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22523@lists.math.uh.edu Fri Nov 19 00:51:43 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 1PJEGT-0001E6-Pr for ding-account@gmane.org; Fri, 19 Nov 2010 00:51:41 +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 1PJEFt-00074Y-UN; Thu, 18 Nov 2010 17:51:05 -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 1PJEFs-00074O-My for ding@lists.math.uh.edu; Thu, 18 Nov 2010 17:51:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PJEFr-0008Rk-KY for ding@lists.math.uh.edu; Thu, 18 Nov 2010 17:51:04 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PJEFq-0006ZL-00 for ; Fri, 19 Nov 2010 00:51:02 +0100 Original-Received: from localhost ([127.0.0.1]:37593) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1PJEFH-0006j2-80 for ding@gnus.org; Thu, 18 Nov 2010 17:50:27 -0600 X-Hashcash: 1:20:101118:ding@gnus.org::ZrrnLQw4fWtVKWOo:0000IEX3 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:HN2p3UdPzZiJNtA510eXat3mgWo= 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:74158 Archived-At: --=-=-= If a person's mail address is expressed like this message, a gravater is put in the middle of the field. But isn't it better to place it in the beginning? --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-gravatar.el~ 2010-11-08 01:30:51 +0000 +++ gnus-gravatar.el 2010-11-18 23:48:59 +0000 @@ -90,4 +90,6 @@ (when (if real-name ; have a realname, go for it! - (and (search-forward real-name nil t) - (search-backward real-name nil t)) + (and (re-search-forward + (concat (regexp-quote real-name) "\\|" + (regexp-quote mail-address)) nil t) + (goto-char (match-beginning 0))) (and (search-forward mail-address nil t) --=-=-=--