Gnus development mailing list
 help / color / mirror / Atom feed
* gravatar position
@ 2010-11-18 23:50 Katsumi Yamaoka
  2010-11-19  0:02 ` Katsumi Yamaoka
  2010-11-19 14:52 ` Julien Danjou
  0 siblings, 2 replies; 9+ messages in thread
From: Katsumi Yamaoka @ 2010-11-18 23:50 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 523 bytes --]

--- 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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-11-21 16:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18 23:50 gravatar position Katsumi Yamaoka
2010-11-19  0:02 ` Katsumi Yamaoka
2010-11-19 14:52 ` Julien Danjou
2010-11-20  5:30   ` nnimap and multiple accounts on the same server Tommy Kelly
2010-11-20 15:05     ` Steinar Bang
2010-11-21 16:29       ` Tommy Kelly
2010-11-20 17:23     ` Tassilo Horn
2010-11-21  1:35       ` Tommy Kelly
2010-11-21 12:33         ` Tassilo Horn

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).