From xemacs-m  Mon Sep 22 10:53:39 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA03836
	for <xemacs-beta@xemacs.org>; Mon, 22 Sep 1997 10:53:34 -0500 (CDT)
Received: (from hniksic@localhost)
	by jagor.srce.hr (8.8.7/8.8.6) id RAA26574;
	Mon, 22 Sep 1997 17:53:29 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Cc: Jamie Zawinski <jwz@netscape.com>
Subject: Re: mail-extract-address-components bug?
References: <199709221443.KAA21644@pochacco.alphatech.com>
X-Attribution: Hrvoje
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 22 Sep 1997 17:53:28 +0200
In-Reply-To: greg@alphatech.com's message of "Mon, 22 Sep 1997 10:43:12 -0400"
Message-ID: <kigzpp5gxaf.fsf@jagor.srce.hr>
Lines: 48
X-Mailer: Quassia Gnus v0.8/XEmacs 20.3(beta23) - "Sarajevo"

[Cc to Jamie, who is listed as the last maintainer of mail-extr]

greg@alphatech.com (Greg Klanderman) writes:
> is this a bug or feature?
> 
> (mail-extract-address-components
>  "kimeric@foobar.com (Kim Scott & Eric Tucker)")
> 
> gives:
> 
> ("Kim Scott Kimeric Eric Tucker" "kimeric@foobar.com")
> 
> note in the full-name, the ampersand (`&') got replaced with
> the email address.

It seems to be a feature:

	 ;; Handle & substitution
	 ((and (or (bobp)
		   (eq ?\  (char-before)))
	       (looking-at "&\\( \\|\\'\\)"))
	  (mail-extr-delete-char 1)
	  (capitalize-region
	   (point)
	   (progn
	     (insert-buffer-substring canonicalization-buffer
				      mbox-beg mbox-end)
	     (point)))
	  (setq disable-initial-guessing-flag t)
	  (setq word-found-flag t))

Of what use this is to anyone, I cannot fathom.  Jamie, do you
remember what this was for?

Anyway, just removing that lump of code doesn't work as expected,
because then the result of the above is:

  ("Kim Scott" "kimeric@foobar.com")

instead of:

  ("Kim Scott & Eric Tucker" "kimeric@foobar.com")

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Unspeakable horrors from outer space paralyze the living and
resurrect the dead!

