From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.help Subject: Re: Bug in mail-extract-address-components (mail-extr.el)? Date: Mon, 23 Sep 2002 16:29:01 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032791782 31468 127.0.0.1 (23 Sep 2002 14:36:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 14:36:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tUJx-0008BO-00 for ; Mon, 23 Sep 2002 16:36:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tUJv-0005gi-00; Mon, 23 Sep 2002 10:36:19 -0400 Original-Newsgroups: gnu.emacs.help X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1738 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1738 On Mon, Sep 23 2002, Jesper Harder wrote: > Reiner Steib <4uce.02.r.steib@gmx.net> 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" "bongie@gmx.net") 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\" ")) ==> 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/