GNU bug report logs - #22594
25.1.50; mail-extract-address-components doesn't work on single-named people

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Mon, 8 Feb 2016 02:24:02 UTC

Severity: normal

Tags: fixed

Found in version 25.1.50

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #15 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rasmus <rasmus <at> gmx.us>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 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
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> (mail-extract-address-components "Rasmus <rasmus <at> gmx.us>")
>> => (nil "rasmus <at> 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 <at> gmx.us>")
=> ("Rasmu s." "rasmus <at> gmx.us")

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

Rasmus

-- 
Summon the Mothership!





This bug report was last modified 8 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.