help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in mail-extract-address-components (mail-extr.el)?


From: Reiner Steib
Subject: Re: Bug in mail-extract-address-components (mail-extr.el)?
Date: Mon, 23 Sep 2002 16:29:01 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

On Mon, Sep 23 2002, Jesper Harder wrote:

> Reiner Steib <address@hidden> writes:
[...]
>> Instead of "Harald H.-J. Bongartz" I get "Harald H.":
>>
>> Is this a bug in `mail-extract-address-components' or should I use a
>> different function to get the full name?
>
> In this particular case `gnus-extract-address-components' works better:
[...]
> ==> ("Harald H.-J. Bongartz" "address@hidden")

Thanks for the hint!

> But usually `mail-extract-address-components' is more reliable (but also
> really complicated).

The code of mail-e-a-c spans more than 700 lines, whereas gnus-e-a-c
has only 27 lines. Therefore it's even more surprising that mail-e-a-c
fails for the given example (assuming it's a valid RFC-822 address),
which probably occurs quite often in real life [1]. mail-e-a-c also
fails for this:

(car (mail-extract-address-components "\"K.-H. Foo\" <address@hidden>"))
==> nil

Bye, Reiner.

[1] At least in Germany such names are not so rare: Abbreviated forms
    of Karl-Heinz, ...
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]