Gnus development mailing list
 help / color / mirror / Atom feed
From: yamaoka@jpl.org (Katsumi Yamaoka)
To: ding@gnus.org
Subject: gravatar position
Date: Fri, 19 Nov 2010 08:50:20 +0900	[thread overview]
Message-ID: <b4mbp5mtcn7.fsf@jpl.org> (raw)

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

             reply	other threads:[~2010-11-18 23:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 23:50 Katsumi Yamaoka [this message]
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

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=b4mbp5mtcn7.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --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).