all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: 22594@debbugs.gnu.org
Subject: bug#22594: 25.1.50; mail-extract-address-components doesn't work on single-named people
Date: Mon, 08 Feb 2016 21:54:30 +0100	[thread overview]
Message-ID: <87a8na7wjd.fsf@gmx.us> (raw)
In-Reply-To: <87pow8hrfn.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> (mail-extract-address-components "Rasmus <rasmus@gmx.us>")
>> => (nil "rasmus@gmx.us")
>>
>> There's the weird
>>
>> (setq mail-extr-ignore-single-names t)
>>
>> variable, but there is no difference in the result.
>
> It was because the user name and the full name were the same.  I've now
> changed it to return the name, anyway (if mail-extr-ignore-single-names
> isn't set).
>
> That's one weird and huge function with a *lot* of functionality...

I haven't check your patch, but I noticed the following funny behavior as
well:

(mail-extract-address-components "Rasmu s  <rasmus@gmx.us>")
=> ("Rasmu s." "rasmus@gmx.us")

Why is the period added?  That seems uncalled for...

Rasmus

-- 
Summon the Mothership!






  reply	other threads:[~2016-02-08 20:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08  2:22 bug#22594: 25.1.50; mail-extract-address-components doesn't work on single-named people Lars Ingebrigtsen
2016-02-08  5:46 ` Lars Ingebrigtsen
2016-02-08 20:54   ` Rasmus [this message]
2016-02-08 22:47     ` Lars Ingebrigtsen
2016-02-08 23:06       ` Rasmus

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=87a8na7wjd.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=22594@debbugs.gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.