From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Bug in mail-extract-address-components (mail-extr.el)? Date: Mon, 23 Sep 2002 15:48:18 +0100 Organization: funfunfun Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032792980 3588 127.0.0.1 (23 Sep 2002 14:56:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 14:56:20 +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 17tUdG-0000vj-00 for ; Mon, 23 Sep 2002 16:56:18 +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 17tUdI-0001oI-00; Mon, 23 Sep 2002 10:56:20 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!sybil.ph.ed.ac.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: sybil.ph.ed.ac.uk (129.215.73.53) Original-X-Trace: fu-berlin.de 1032792499 7540180 129.215.73.53 (16 29 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.4 (sparc-sun-solaris2.6) Cancel-Lock: sha1:yRWt2BTJb1N0ACnSXnDvGi+F9xc= Original-Xref: nntp.stanford.edu gnu.emacs.help:105184 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: 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:1739 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1739 [...] mail-e-a-c vs gnus-e-a-c. Jesper Harder commented: >> But usually `mail-extract-address-components' is more reliable (but also >> really complicated). To which Reiner Steib responded: > 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 mail-e-a-c also fails when for a single name/comment part of the email address: (mail-extract-address-components "lawrence ") => (nil "foo@bar.com") Which, by my reading of RFC2822 is a valid address form (ICBW). Time for a bug report I wonder? -- lawrence mitchell